LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-31-2008, 10:17 AM   #1
digimars
Member
 
Registered: Nov 2005
Location: VA
Distribution: Fedora 12
Posts: 31

Rep: Reputation: 15
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.
 
Old 03-31-2008, 01:13 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,865

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
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
 
Old 11-25-2008, 02:17 AM   #3
korexmohan
LQ Newbie
 
Registered: Nov 2008
Posts: 17

Rep: Reputation: 0
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
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc: installation problem, cannot exec `as': No such file or directory ERROR jaisol Slackware 8 08-05-2006 12:01 PM
gcc: installation problem, cannot exec `cc1': No such file or directory Error Message 08h Programming 2 07-20-2006 11:44 AM
exec: No such file or directory GUIPenguin Linux - General 1 03-31-2006 07:56 AM
gcc: installation problem, cannot exec `cc1': No such file or directory natsirc Linux - General 3 11-11-2004 09:26 AM
gcc: installation problem, cannot exec `cc1': No such file or directory Error Message 08h Linux - Newbie 1 06-01-2004 04:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:38 PM.

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