Griffin Lacek
Griffin Lacek

Reputation: 53

Can't create a symbolic link with Textmate in Terminal. (mate: command not found)

I'm currently going through http://ruby.railstutorial.org/ and it uses the command "mate" to access Textmate through the terminal. I have had Textmate on my Macbook Air (Lion OS) since I first bought it, but when I try to use a command like "mate .gitignore" the terminal gives me "mate: command not found".

I've looked through all other StackOverflow questions regarding this topic and have done the following:

This code lets me enter my password and tells me the file exists, but still does not allow me to use the "mate" command.

So, my question is can anyone tell me what is wrong? Love to figure this out!

Thank you!

Upvotes: 5

Views: 9388

Answers (2)

user1781626
user1781626

Reputation:

The best way to do it is from TextMate -> preferences -> Terminal and then check install all the previous methods didn't work for me.

Upvotes: 6

Andrew Marshall
Andrew Marshall

Reputation: 97004

First, you should not add anything to /usr/bin. You should add it into /usr/local/bin. Further, getting the message "file already exists" from ln means that it did not create the link. Try this:

ln -s /Applications/TextMate.app/Contents/SharedSupport/Support/bin/mate /usr/local/bin/mate

Depending on your current setup, this may have to be run with sudo. In general, if you don't know whether to run something with sudo or not, try without first and see if you get a permissions error, then use sudo.

Upvotes: 19

Related Questions