LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 04: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, 04: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, 04: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, 04: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, 05: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, 08: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, 08: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



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 07:45 AM
Apache path and kde path questions darkraider Debian 1 11-12-2005 05:07 AM
Set the path systemwide/Set the path for a user with Slackware jayhel Slackware 1 06-12-2005 12:24 AM
Removing path form PATH maginotjr Linux - Newbie 3 02-12-2005 02:23 PM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:34 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
Open Source Consulting | Domain Registration