LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   gcc: installation problem, cannot exec `cc1': No such file or directory (https://www.linuxquestions.org/questions/linux-general-1/gcc-installation-problem-cannot-exec-%60cc1-no-such-file-or-directory-631938/)

digimars 03-31-2008 10:17 AM

gcc: installation problem, cannot exec `cc1': No such file or directory
 
I have some software on a RHEL4 server that we are trying to get compiled. When I run ./configure I don't get errors right off the bat, but when I run make we get this:

Code:

make[1]: Entering directory `/opt/sip-1.5.0/contrib'
cd libxml2.Linux.i686 ; env CC=gcc make
make[2]: Entering directory `/opt/sip-1.5.0/contrib/libxml2.Linux.i686'
make[2]: *** No targets specified and no makefile found.  Stop.
make[2]: Leaving directory `/opt/sip-1.5.0/contrib/libxml2.Linux.i686'
make[1]: *** [libxml] Error 2
make[1]: Leaving directory `/opt/sip-1.5.0/contrib'
make: *** [contrib] Error 2

So I check the config.log file and find this:

Code:

configure:842: checking for cc
configure:955: checking whether the C compiler (gcc  ) works
configure:971: gcc -o conftest    conftest.c  1>&5
gcc: installation problem, cannot exec `cc1': No such file or directory

I have gcc installed along with all of its dependencies:

Code:

# rpm -qa | grep gcc
libgcc-3.4.6-9
compat-libgcc-296-2.96-132.7.2
gcc-c++-3.4.6-9
gcc-gnat-3.4.6-9
gcc-g77-3.4.6-9
gcc-objc-3.4.6-9
gcc-3.4.6-9

And I understand that cc is part of the cpp rpm file, and I have it installed as well:

Code:

# rpm -qa | grep cpp
cpp-3.4.6-9

]# rpm -ql cpp
/lib/cpp
/usr/bin/cpp
/usr/libexec/gcc
/usr/libexec/gcc/i386-redhat-linux
/usr/libexec/gcc/i386-redhat-linux/3.4.3
/usr/libexec/gcc/i386-redhat-linux/3.4.3/cc1
/usr/libexec/gcc/i386-redhat-linux/3.4.6
/usr/share/info/cpp.info.gz
/usr/share/info/cppinternals.info.gz
/usr/share/man/man1/cpp.1.gz

So I made a symoblic link to the /usr/bin path thinking that might help the make command find it:

Code:

ln -s /usr/libexec/gcc/i386-redhat-linux/3.4.3/cc1 /usr/bin/cc1
And just to make sure that something was there:

Code:

# ls /usr/bin | grep cc
cc
cc1
ccexample
gcc
gnatgcc
gnome-accessibility-keyboard-properties
i386-startcom-linux-gcc
kaccess
mysqlaccess
perlcc
rpcclient
vncconfig
vncconfig.py

But I still get the same error. I have read on other threads that reinstalling gcc would help, but I still come up with the same problem! Am I missing something here? Any help would be appreciated.

jailbait 03-31-2008 01:13 PM

You have established that /usr/libexec/gcc/i386-redhat-linux/3.4.3/cc1 is an entry in the rpm data base. That means that in the past rpm installed that file. But it does not guarantee that /usr/libexec/gcc/i386-redhat-linux/3.4.3/cc1 still exists. Check /usr/libexec/gcc/i386-redhat-linux/3.4.3/cc1 with the command:

ls -l /usr/libexec/gcc/i386-redhat-linux/3.4.3/cc1

and make sure that cc1 exists and is not a symbolic link. If it does not exist then you probably need to reinstall gcc.

--------------------------
Steve Stites

korexmohan 11-25-2008 02:17 AM

RHEL 5.2 VMWare installation fails
 
Hi guys,
When installing VMware by using cc1 i am getting this error...Can anyone kindly help me??? Not able to install gcc in RHEL 5.2


All times are GMT -5. The time now is 07:52 PM.