Hi!
I've installed MacTex 2008 some days ago and switched finally from pdftex to xelatex. On friday I still compiled files successfully, today I get only a
Error: xelatex is not found, you need to install LaTeX or be sure that your PATH is setup properly.
sh: line 0: type: xelatex: not found
When I run from TextMate "which xelatex" it gives me: /usr/texbin/xelatex In Terminal the same, command completion in Terminal works fine as well. Compiling the file in Terminal works as well.
I'm working with TM 1.5.7 (1464) and a recent SVN-checkout.
Does anyone have an idea what the problem could be and how to fix it?
Niels
Hi Niels,
just noticed no one had replied to this...
Error: xelatex is not found, you need to install LaTeX or be sure that your PATH is setup properly.
sh: line 0: type: xelatex: not found
When I run from TextMate "which xelatex" it gives me: /usr/texbin/xelatex In Terminal the same, command completion in Terminal works fine as well. Compiling the file in Terminal works as well.
The PATH as set in a terminal window is not the PATH that TextMate sees. You can see what PATH is available in TextMate by entering
printenv PATH
and then (with the cursor on that line) hitting control-R. I imagine that you'll find "/usr/texbin" is *not* in the resulting list, so you need to get it in there. Section 8.2 of the TextMate manual covers how to do this...
http://manual.macromates.com/en/shell_commands#search_path
Good luck, Paul
On Tue, Oct 7, 2008 at 9:44 AM, Paul McCann paul.mccann@adelaide.edu.au wrote:
Hi Niels,
just noticed no one had replied to this...
Error: xelatex is not found, you need to install LaTeX or be sure that your PATH is setup properly.
sh: line 0: type: xelatex: not found
When I run from TextMate "which xelatex" it gives me: /usr/texbin/xelatex In Terminal the same, command completion in Terminal works fine as well. Compiling the file in Terminal works as well.
The PATH as set in a terminal window is not the PATH that TextMate sees. You can see what PATH is available in TextMate by entering
printenv PATH
and then (with the cursor on that line) hitting control-R. I imagine that you'll find "/usr/texbin" is *not* in the resulting list, so you need to get it in there. Section 8.2 of the TextMate manual covers how to do this...
It is there:
/Users/nik/Library/Application Support/TextMate/Support/bin/CocoaDialog.app/Contents/MacOS:/sw/bin:/sw/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:/usr/texbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/texbin:/usr/local/bin:/usr/texbin:/usr/X11R6/bin:/Users/nik/Library/Application Support/TextMate/Support/bin
Niels
On Oct 5, 2008, at 12:14 PM, Niels Kobschaetzki wrote:
Hi!
I've installed MacTex 2008 some days ago and switched finally from pdftex to xelatex. On friday I still compiled files successfully, today I get only a
Error: xelatex is not found, you need to install LaTeX or be sure that your PATH is setup properly.
sh: line 0: type: xelatex: not found
When I run from TextMate "which xelatex" it gives me: /usr/texbin/ xelatex In Terminal the same, command completion in Terminal works fine as well. Compiling the file in Terminal works as well.
I'm working with TM 1.5.7 (1464) and a recent SVN-checkout.
Does anyone have an idea what the problem could be and how to fix it?
TextMate commands are moving away from sourcing the file “bash_init.sh” which also sources .profile, thus your path variable is not initialized in the same way the shell. From terminal you can `echo $PATH` and copy the result to the environment variables section of TextMate's preferences.
On Tue, Oct 7, 2008 at 10:21 AM, Alex Ross tm-alex@rosiba.com wrote:
On Oct 5, 2008, at 12:14 PM, Niels Kobschaetzki wrote:
Hi!
I've installed MacTex 2008 some days ago and switched finally from pdftex to xelatex. On friday I still compiled files successfully, today I get only a
Error: xelatex is not found, you need to install LaTeX or be sure that your PATH is setup properly.
sh: line 0: type: xelatex: not found
When I run from TextMate "which xelatex" it gives me: /usr/texbin/ xelatex In Terminal the same, command completion in Terminal works fine as well. Compiling the file in Terminal works as well.
I'm working with TM 1.5.7 (1464) and a recent SVN-checkout.
Does anyone have an idea what the problem could be and how to fix it?
TextMate commands are moving away from sourcing the file "bash_init.sh" which also sources .profile, thus your path variable is not initialized in the same way the shell. From terminal you can `echo $PATH` and copy the result to the environment variables section of TextMate's preferences.
Where is this mentioned preference in the preferences? I can only find the "Shell Variables" -- if this is what you mean, what variable is it? TM_BASH_something? And the value is the path? Or is it somewhere else?
Niels
On Oct 7, 2008, at 9:39 PM, Niels Kobschaetzki wrote:
On Tue, Oct 7, 2008 at 10:21 AM, Alex Ross tm-alex@rosiba.com wrote:
On Oct 5, 2008, at 12:14 PM, Niels Kobschaetzki wrote:
Hi!
I've installed MacTex 2008 some days ago and switched finally from pdftex to xelatex. On friday I still compiled files successfully, today I get only a
Error: xelatex is not found, you need to install LaTeX or be sure that your PATH is setup properly.
sh: line 0: type: xelatex: not found
When I run from TextMate "which xelatex" it gives me: /usr/texbin/ xelatex In Terminal the same, command completion in Terminal works fine as well. Compiling the file in Terminal works as well.
I'm working with TM 1.5.7 (1464) and a recent SVN-checkout.
Does anyone have an idea what the problem could be and how to fix it?
TextMate commands are moving away from sourcing the file "bash_init.sh" which also sources .profile, thus your path variable is not initialized in the same way the shell. From terminal you can `echo $PATH` and copy the result to the environment variables section of TextMate's preferences.
Where is this mentioned preference in the preferences? I can only find the "Shell Variables" -- if this is what you mean, what variable is it? TM_BASH_something? And the value is the path? Or is it somewhere else?
Yes, in the shell variables tab you have to add the PATH variable.
On Tue, Oct 7, 2008 at 11:34 PM, Alex Ross tm-alex@rosiba.com wrote:
On Oct 7, 2008, at 9:39 PM, Niels Kobschaetzki wrote:
On Tue, Oct 7, 2008 at 10:21 AM, Alex Ross tm-alex@rosiba.com wrote:
On Oct 5, 2008, at 12:14 PM, Niels Kobschaetzki wrote:
Hi!
I've installed MacTex 2008 some days ago and switched finally from pdftex to xelatex. On friday I still compiled files successfully, today I get only a
Error: xelatex is not found, you need to install LaTeX or be sure that your PATH is setup properly.
sh: line 0: type: xelatex: not found
When I run from TextMate "which xelatex" it gives me: /usr/texbin/ xelatex In Terminal the same, command completion in Terminal works fine as well. Compiling the file in Terminal works as well.
I'm working with TM 1.5.7 (1464) and a recent SVN-checkout.
Does anyone have an idea what the problem could be and how to fix it?
TextMate commands are moving away from sourcing the file "bash_init.sh" which also sources .profile, thus your path variable is not initialized in the same way the shell. From terminal you can `echo $PATH` and copy the result to the environment variables section of TextMate's preferences.
Where is this mentioned preference in the preferences? I can only find the "Shell Variables" -- if this is what you mean, what variable is it? TM_BASH_something? And the value is the path? Or is it somewhere else?
Yes, in the shell variables tab you have to add the PATH variable.
Thanks a lot - that solved the problem ^^ Finally I can work as it used to be ^^
Cheers, Niels