I'm trying to install a symbolic link to Sublime Text (ie being able to type "subl Foo.java" into the terminal and launching Sublime). I'm using the following: ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime (which is provided at http://olivierlacan.com/posts/launch-sublime-text-3-from-the-command-line/ ). However, I'm getting the following error:
ln: /usr/local/bin/sublime: File exists
I've tried editing my path file but nothing seems to be working. Has anyone had a similar problem and have a fix?
It seems like your symlink is still existing, so there is no need to create it twice. Maybe you put the line
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
into your .bash_profile
? if your /usr/local/bin/sublime
file exists there is no need for that.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.