[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX] Re: /bin/sh: latex: command not found (but it works in the term
[AUCTeX] Re: /bin/sh: latex: command not found (but it works in the terminal version)
Sat, 20 Jun 2009 02:51:05 -0700
I have a general idea of the culprit and I have a workaround for this.
Terminal emacs inherits the properties of my terminal and executes any
command available to the terminal. Maybe something to do with exec-
On the other hand, Emacs.app does not do this _when i open it from the
finder_ and apparently loads up some minimal defaults instead.
So the temporary solution is to open it from the terminal by
executing /Applications/Emacs.app/Contents/MacOS/Emacs &
everything I mentioned before works in this instance of emacs,
including preview (yay, what a cool feature).
I'm happy with this hack for the moment but I think it's something for
the devs to work on for obvious reasons.
Le 29-May-09 à 12:45 PM, Al Erickson a écrit :
I installed auctex and preview. I open a .tex file with emacs (GNU
Emacs 18.104.22.168) and get the right menus that tell me it installed
auctex and preview. This is on Mac OS 10.5, I use TeXLive 2008
which is installed at /usr/local/texlive/2008/ and latex's "/bin"
folder is aliased from /usr/texbin/ (I think it is a pretty standard
install). LaTeX (C-c C-c) works normally in terminal emacs but not
in the graphical version. Instead I get the error message:
Running `LaTeX' on `ksegs' with ``latex -interaction=nonstopmode
/bin/sh: latex: command not found
LaTeX exited abnormally with code 127 at Fri May 29 01:21:15
The problem was previously addressed at http://www.mail-archive.com/address@hidden/msg02945.html
where the original poster says he found the problem is known to be
intermittent (I asked him about it and he didn't have anything
further on the topic). I didn't find any other evidence of that
for what it's worth, /usr/texbin is in the sh terminal path.
sh-3.2$ echo $PATH
Thanks for your help. If it's a bug, let me know and I'll try to
report it. I hope Mail doesn't turn out to be HTML mail. Lastly,
please consider that I tend to stumble my way through Unix and have
never used a mailing list. Clear advice and instruction is
- [AUCTeX] Re: /bin/sh: latex: command not found (but it works in the terminal version),
Erickson Al <=