Hi!
I installed MacTeX today with the Leopard-Fix for making the TeX-environment-switch possible. I added /usr/texbin to my .bash_login as well. TeXShop has no problems rendering files. TextMate just tells me: /bin/sh: kpsewhich: command not found Error: Could not open to check for packages
This is most likely a problem with TM_LATEX_MASTER
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.
My question: How do I get TeX working again in TextMate (and maybe: How do I get Terminal to use .bash_login always)?
Any help appreciated.
Niels
On Sun, Mar 16, 2008 at 4:40 PM, Niels Kobschaetzki n.kobschaetzki@googlemail.com wrote:
I installed MacTeX today with the Leopard-Fix for making the TeX-environment-switch possible. I added /usr/texbin to my .bash_login as well. TeXShop has no problems rendering files. TextMate just tells me: /bin/sh: kpsewhich: command not found Error: Could not open to check for packages
This is most likely a problem with TM_LATEX_MASTER
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.
My question: How do I get TeX working again in TextMate (and maybe: How do I get Terminal to use .bash_login always)?
More search in the archive helped me to solve the problem…just put /usr/texbin in /etc/profile
Niels
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/
On Sun, Mar 16, 2008 at 5:02 PM, jiho jo.irisson@gmail.com wrote:
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>
Thx for that :)
PS: if I remember well you need to log out and back in for changes to this file to be picked up.
I guess so
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.
I have no .bash_profile, .bash_login and .profile -- different web-sites all use one of those files, rarely the same…it seems that nowadays .bash_profile is the one to go…and I'm quite sure that in earlier versions of OS X I needed one of those other files…
Niels
JiHO
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Le 16 mars 08 à 16:40, Niels Kobschaetzki a écrit :
Hi!
I installed MacTeX today with the Leopard-Fix for making the TeX-environment-switch possible. I added /usr/texbin to my .bash_login as well.
hi !
I work with MacTeX but without Leopard-Fix, I prefer names of files without spaces, and without .bash_login.
If MacTeX is installed correctly, at the end /etc/profile is like this : remark the line : ## TeX added /usr/texbin
# System-wide .profile for sh(1)
PATH="/bin:/sbin:/usr/bin:/usr/sbin" export PATH
if [ "${BASH-no}" != "no" ]; then [ -r /etc/bashrc ] && . /etc/bashrc fi ## setloginpath added /usr/local/bin start at Tue Sep 18 23:50:53 CEST 2007 ## Do not remove the previous line if [ `whoami` != "root" ] then PATH="$PATH:/usr/local/bin" export PATH fi ## Do not remove the next line ## setloginpath added /usr/local/bin end at Tue Sep 18 23:50:53 CEST 2007 ## TeX added /usr/texbin start at Tue Sep 18 23:50:53 CEST 2007 ## Do not remove the previous line if [ `whoami` != "root" ] then PATH="$PATH:/usr/texbin" export PATH fi ## Do not remove the next line ## TeX added /usr/texbin end at Tue Sep 18 23:50:53 CEST 2007
You can verify your path with $echo $PATH
The result must be /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/texbin
and there is anything to do
Best Regards
Alain Matthes