On 2008-March-16 , at 16:40 , Niels Kobschaetzki wrote:
My tip: the path-variable TextMate uses doesn't include /usr/texbin When I type env in the Terminal I get a PATH that includes /usr/texbin but it seems that the stuff from .bash_login is only read in my session when I type . ~/.bash_login Therefore I guess there was a change in Mac OS X where my stuff gets its environment from.
I use ~/.bash_profile to set my environment and it gets picked up by leopard's terminal.
My question: How do I get TeX working again in TextMate (and maybe: How do I get Terminal to use .bash_login always)?
Add a PATH shell variable in TextMate (in the prefs>advanced>shell variables) which includes /usr/texbin
or
Set the path in ~/.MacOSX/environment.plist and it gets picked up by all applications. For example mine is: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple . com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>EDITOR</key> <string>mate -w</string> <key>LC_CTYPE</key> <string>en_US.UTF-8</string> <key>PATH</key> <string>/usr/texbin:/opt/local/bin:/opt/local/sbin:/Developer/ Tools:/usr /local/bin:/usr/X11R6/bin:/bin:/sbin:/usr/bin:/usr/sbin</string> </dict> </plist> PS: if I remember well you need to log out and back in for changes to this file to be picked up. PPS: For some reason, you also have to set the PATH in ~/.bash_profile for use in Terminal since Terminal rereads its environment on startup (and hence overwrites the PATH you set here). There must be a way to avoid this and have only one place where the environment is set but I could not make it work on my machine.
JiHO --- http://jo.irisson.free.fr/