LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-20-2004, 05:17 PM   #1
CrotchCricket
LQ Newbie
 
Registered: Oct 2004
Location: Los Angeles, CA
Distribution: Fedora Core
Posts: 12

Rep: Reputation: 0
no cc in $PATH??


Whenever I try to install a program I get something like this

[mike@localhost php-5.0.2]$ ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnuoldld
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH

I'm using Fedora core 3 test 1
linux kernal 2.6.7-1.478
 
Old 10-20-2004, 05:23 PM   #2
barisdemiray
Member
 
Registered: Sep 2003
Location: Ankara/Turkey
Distribution: Slackware
Posts: 155

Rep: Reputation: 30
Re: no cc in $PATH??

Quote:
Originally posted by CrotchCricket
Whenever I try to install a program I get something like this

[mike@localhost php-5.0.2]$ ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnuoldld
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH

I'm using Fedora core 3 test 1
linux kernal 2.6.7-1.478
Then you have not the gcc installed or correctly set path. Try to find `gcc' with locate or find utility on your system. If you can't, you should install the gcc package.
 
Old 10-20-2004, 05:32 PM   #3
CrotchCricket
LQ Newbie
 
Registered: Oct 2004
Location: Los Angeles, CA
Distribution: Fedora Core
Posts: 12

Original Poster
Rep: Reputation: 0
It appears to be installed in /usr/libexec/gcc/i386-redhat-linux/3.4.1 in there there is a file cc1 but i cant seem to open it or edit it.
 
Old 10-20-2004, 05:47 PM   #4
CrotchCricket
LQ Newbie
 
Registered: Oct 2004
Location: Los Angeles, CA
Distribution: Fedora Core
Posts: 12

Original Poster
Rep: Reputation: 0
okay i tried to reinstall gcc and i got this
[mike@localhost gcc-3.4.2]$ ./configure
creating cache ./config.cache
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
checking build system type... i686-pc-linux-gnuoldld
checking for a BSD compatible install... /usr/bin/install -c
./configure: line 2332: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
 
Old 10-20-2004, 06:05 PM   #5
barisdemiray
Member
 
Registered: Sep 2003
Location: Ankara/Turkey
Distribution: Slackware
Posts: 155

Rep: Reputation: 30
Can you write the results of the commands below? I think there is still a problem about installation..

Code:
[mbaris@slackware:~]$ which gcc
/usr/bin/gcc
[mbaris@slackware:~]$ which cc
/usr/bin/cc
[mbaris@slackware:~]$ ls -l /usr/bin/cc
lrwxrwxrwx    1 root     root            3 May 18 01:07 /usr/bin/cc -> gcc
[mbaris@slackware:~]$
Also, AFAIK, rpm -qi gcc should give the package information if it's installed. These outputs may help..
 
Old 10-20-2004, 09:14 PM   #6
CrotchCricket
LQ Newbie
 
Registered: Oct 2004
Location: Los Angeles, CA
Distribution: Fedora Core
Posts: 12

Original Poster
Rep: Reputation: 0
[root@localhost mike]# which gcc
/usr/bin/which: no gcc in (/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/mike/bin)
[root@localhost mike]# which cc
/usr/bin/which: no cc in (/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/mike/bin)
[root@localhost mike]# ls -l /usr/bin/cc
ls: /usr/bin/cc: No such file or directory
 
Old 10-20-2004, 09:49 PM   #7
CrotchCricket
LQ Newbie
 
Registered: Oct 2004
Location: Los Angeles, CA
Distribution: Fedora Core
Posts: 12

Original Poster
Rep: Reputation: 0
got it.
had to run
yum install gcc
thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Image Path reference in Linux (Absolute path) javabuddy Linux - General 7 06-05-2006 08:45 AM
Apache path and kde path questions darkraider Debian 1 11-12-2005 06:07 AM
Set the path systemwide/Set the path for a user with Slackware jayhel Slackware 1 06-12-2005 01:24 AM
Removing path form PATH maginotjr Linux - Newbie 3 02-12-2005 03:23 PM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 07:10 PM


All times are GMT -5. The time now is 06:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration