I downloaded Textmate (1.5.10) on a new MacBookPro (MacOSX 10.6.7) after using it to typeset LaTeX on my old MacBook. I saved my document folders on my new computer in the same document folder structure and was unable to typeset the .tex
documents. I got the response:
The current PATH is:
/usr/bin
/bin
/usr/sbin
/sbin
Please add the directory containing “kpsewhich” to PATH in TextMate's Shell Variables preferences.
In my TextMate preferences, Advanced>Shell Variables> – I have four categories checked off: PATH /usr/local/bin:/usr/X11/bin
, PATH /usr/bin:/bin:/usr/sbin:/sbin
, _MyCompanyName__ TM_ORGANIZATION__NAME
, & (I tried adding) MY_VARIABLE /usr/texbin
When I click on the Terminal link to "Set PATH and Relaunch", this is what I get:
Last login: Fri Jun 17 16:06:39 on console
defaults write com.macromates.textmate OakShellVariables -array-add "{ enabled = 1; variable = PATH; value = '$PATH'; }" && open "/Users/annlmontgomery/Downloads/TextMate.app"
Ann-Montgomerys-MacBook-Pro:~ annlmontgomery$ defaults write com.macromates.textmate OakShellVariables -array-add "{ enabled = 1; variable = PATH; value = '$PATH'; }" && open "/Users/annlmontgomery/Downloads/TextMate.app"
Ann-Montgomerys-MacBook-Pro:~ annlmontgomery$
But I don't know what to do this step – I'm just learning LaTeX and have no programming experience.
additional note:
I do have MacTex and I included "/usr/texbin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin" in the Shell Variables preferences and when I typeset, now I get "env: ruby: No such file or directory" …any ideas? –
additional note: I have TexShop 2.41 installed
additional note:
in Preferences>Shell Variables – I now have
PATH /usr/texbin:/usr/local/bin:/usr/X11/bin
PATH /usr/bin:/bin:/usr/sbin:/sbin/
PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin
PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:/usr/texbin
PATH /usr/texbin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin
PATH /usr/bin/usr/texbin:/usr/local/bin:/usr/X11/bin
and when I Typeset – I get "env: ruby: No such file or directory"
BTW thanks for everyone's efforts
Best Answer
I downloaded TextMate and changed the only PATH in the preferences to read
It worked. You might add other directories to the PATH, but remember to separate them by colons. For example