|
Home > Archive > Unix administration > October 2004 > Setting Path Error - not sure why this does not work
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Setting Path Error - not sure why this does not work
|
|
| Katerina McLean 2004-09-22, 9:21 pm |
| I need to use gcc but unfortunately my path is not set to where 'gcc'
is. 'gcc' is located at /usr/local/bin
So I entered it to my path : PATH=/usr/local/bin:/usr/sbin:/usr/bin
However when I run './configure' to install an application, I receive:
checking build system type... sparc-sun-solaris2.8
checking host system type... sparc-sun-solaris2.8
checking whether make sets $(MAKE)... no
checking for a BSD-compatible install... ./install-sh -c
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
Why would it mention that 'C compile' is not found when I have entered
it into my PATH earler?
| |
| Chris F.A. Johnson 2004-09-22, 9:21 pm |
| On 2004-09-17, Katerina McLean wrote:
> I need to use gcc but unfortunately my path is not set to where 'gcc'
> is. 'gcc' is located at /usr/local/bin
>
> So I entered it to my path : PATH=/usr/local/bin:/usr/sbin:/usr/bin
>
> However when I run './configure' to install an application, I receive:
>
> checking build system type... sparc-sun-solaris2.8
> checking host system type... sparc-sun-solaris2.8
> checking whether make sets $(MAKE)... no
> checking for a BSD-compatible install... ./install-sh -c
> checking for gcc... no
> checking for cc... no
> checking for cc... no
> checking for cl... no
> configure: error: no acceptable C compiler found in $PATH
>
> Why would it mention that 'C compile' is not found when I have entered
> it into my PATH earler?
Your shell probably doesn't export environment variables after
they have been modified. You need to add:
export PATH
--
Chris F.A. Johnson http://cfaj.freeshell.org/shell
========================================
===========================
My code (if any) in this post is copyright 2004, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License
| |
| Fred J. Bourgeois, III 2004-10-02, 9:13 pm |
| Chris F.A. Johnson wrote:
> On 2004-09-17, Katerina McLean wrote:
>
>
>
> Your shell probably doesn't export environment variables after
> they have been modified. You need to add:
>
> export PATH
>
Also, use a command line like the following:
% CC=/usr/local/bin/gcc PATH=/usr/local/bin:/usr/sbin:/usr/bin ./configure
which (I think) is still included in the INSTALL docs as the proper way to
run the configure command if your compiler isn't in your default login path.
Caveat Emptor: the syntax will be slightly different depending on which
shell you are running with. Notably, csh will need some setenv's, and a
"rehash" to make the PATH (-er- make that 'path' for csh) updates effective.
Read the man page for your shell, too, at least ... YMMV!
-fjb
--
Colorless Green Ideas Sleep Furiously, and so do I....
|
|
|
|
|