LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   no cc in $PATH?? (https://www.linuxquestions.org/questions/linux-newbie-8/no-cc-in-%24path-245252/)

CrotchCricket 10-20-2004 04:17 PM

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

barisdemiray 10-20-2004 04:23 PM

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.

CrotchCricket 10-20-2004 04:32 PM

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.

CrotchCricket 10-20-2004 04:47 PM

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.

barisdemiray 10-20-2004 05:05 PM

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

CrotchCricket 10-20-2004 08:14 PM

[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

CrotchCricket 10-20-2004 08:49 PM

got it.
had to run
yum install gcc
thanks


All times are GMT -5. The time now is 12:28 PM.