Hi Paula

This mailing list is for Carbon Emacs, not Aquamacs, but you will find an
explanation below.

On 8/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> When I try to compile LaTeX from inside aquamacs with C-c C-c, I get
> the following error message:
>
> Running `LaTeX' on `lexical_borrowings_in_french_chesley_spring_07'
> with ``latex  -interaction=nonstopmode "\input"
> lexical_borrowings_in_french_chesley_spring_07.tex''
> /bin/sh: line 1: latex: command not found
>
> LaTeX exited abnormally with code 127 at Mon Aug  6 21:32:38
>
> My latex run command is /sw/bin/latex, which is where latex is on my
> machine:
>
> 21:58 [EMAIL PROTECTED] ~% which latex
> /sw/bin/latex
>
> Can someone tell me what the problem is?


When you are in your shell (Terminal) you have set your path, probably by
including some statements in your ~/.profile file (or ~/.bashrc or perhaps
something else depending on your shell). The value of PATH includes /sw/bin
(which by the way is something from Fink I think).

Anyway, the main reason is that when Emacs.app is started, it does not know
about the values of PATH which you have set in your shell startup script.
This is why it cannot find /sw/bin/latex. You need to tell Emacs.app how to
do this. There are two ways

1) Investigate how you set your latex command explicitly in AUCTeX, this
command should include your path, so instead of latex it should say
/sw/bin/latex
Unfortunately I do not know more specifics, but this should be enough to
start a search (it might be mentioned in the AUCTeX FAQ).

2) Set the PATH variable for Emacs.app by setting
~/.MacOS/environment.plist. Read for example
http://barrykeenan.blogspot.com/2007/03/environment-variables-in-mac-os-x.html
or
http://developer.apple.com/documentation/MacOSX/Conceptual/OSX_Technology_Overview/CommandLine/chapter_8_section_4.html

Kasper



Thanks,
> Paula
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
"Carbon Emacs" group mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/carbon-emacs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to