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 |
Re: no cc in $PATH??
Quote:
|
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.
|
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. |
Can you write the results of the commands below? I think there is still a problem about installation..
Code:
[mbaris@slackware:~]$ which gcc |
[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 |
got it.
had to run yum install gcc thanks |
All times are GMT -5. The time now is 12:28 PM. |