Hi Peter,
Oops!! ... when I said "printenv", in the Mx-compile, it shows a different value for "PATH", from the one I see in the terminal.
> I looks as if your login shell
>provides a different environment than what you use in an interactive
>shell. If you fix this issue, then GNU Emacs will find the same
>compiler as you in some shell.
I guess, you are right. Could you please tell me how to fix this?
Infact, when I said "printenv", I saw a big list, where in PATH_USER had the correct value, where as the PATH variable was referring to an incorrect value.
I also changed the path in Mx-compile, using "setenv PATH <value>", but it gets reset to a different value!!
Thanks,
Nazir
On 3/28/07, Peter Dyballa <Peter_Dyballa@web.de> wrote:
Am 28.03.2007 um 07:10 schrieb Nazir:
> The path in the shell is already set to the required compiler.
So the question is, why has GNU Emacs another another PATH value
active? Do launch it from some menu? I looks as if your login shell
provides a different environment than what you use in an interactive
shell. If you fix this issue, then GNU Emacs will find the same
compiler as you in some shell.
> I need to run a set of make files.
> I do not want to change the "CC" in the make files.
As I showed in my examples: you can use env to set particular
environment variables.
>
> I want to use, say "/tools/gnu/gcc". (THe shell from which emacs is
> laucnhed points to this gcc! )
Then my guess is that some environment variables reset the value. You
can, for example do M-x compile RET and then erase the default make
command and substitute it with env or printenv to see which
environment the compile process sees. Then some corrections can be made.
> Can I configure the emacs to pick the required compiler?
>
I don't see this. There is a customisation group for the compilation
process (C-h f compile RET and you'll find a hint in the *Help*
buffer or via menus Options -> Customize Emacs -> Specific Group…,
name completion works), but there is nothing to set the compiler
explicitly. This is done in the shell or in Makefiles, as determined
by a configure script for example, or set by the programmer.
--
Greetings
Pete 0
%-/\_//
(*)(*)
--
" LIFE ROCKS "