无法安装Sublime命令行工具

时间:2014-07-29 15:54:57

标签: command-line installation sublimetext2

我遵循了this blog post的建议,但它没有奏效。以下是我的输出。我该怎么做才能解决这个问题?

~/code/rails/adam $ echo "export PATH=~/bin:$PATH" >> ~/.profile
~/code/rails/adam $ ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
ln: /Users/adamzerner/bin/subl: No such file or directory

新输出:

~/code/rails/adam $ mkdir ~/bin
~/code/rails/adam $ ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
~/code/rails/adam $ subl
-bash: subl: command not found
~/code/rails/adam $ subl --help
-bash: subl: command not found
~/code/rails/adam $

1 个答案:

答案 0 :(得分:1)

您需要拥有~/bin目录才能在其中创建符号链接。运行

mkdir ~/bin

然后

ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl

你应该全力以赴。