Setting Path Error - not sure why this does not work
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > Setting Path Error - not sure why this does not work




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Setting Path Error - not sure why this does not work  
Katerina McLean


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-23-04 02:21 AM

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?





[ Post a follow-up to this message ]



    Re: Setting Path Error - not sure why this does not work  
Chris F.A. Johnson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-23-04 02:21 AM

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





[ Post a follow-up to this message ]



    Re: Setting Path Error - not sure why this does not work  
Fred J. Bourgeois, III


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-03-04 02:13 AM

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....






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:17 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register