LinuxQuestions.org
Register a domain and help support LQ
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 04-28-2011, 05:58 AM   #1
newypei
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
Unhappy installation problem, cannot exec `cc1': No such file or directory


Hello everyone,I am new here.and I got some trouble with gcc of my linux system.I have learnt linux for about one week,so I can hardly understand the answers which I got from google.yesterday,I just installed my gcc to my redhat linux,however,when I run my first simple c program,I encounter a error
"installation problem, cannot exec `cc1': No such file or directory".I don't know how to solve it,so i come here for help.

I installed my gcc with 13 rpm files:
----------------------------------------
compat-gcc-32-3.2.3-47.3.i386.rpm
compat-gcc-32-c++-3.2.3-47.3.i386.rpm
cpp-3.4.6-3.i386.rpm
gcc-3.4.6-3.i386.rpm
gcc-c++-3.4.6-3.i386.rpm
gcc-g77-3.4.6-3.i386.rpm
gcc-gnat-3.4.6-3.i386.rpm
gcc-java-3.4.6-3.i386.rpm
gcc-objc-3.4.6-3.i386.rpm
glibc-devel-2.3.4-2.25.i386.rpm
glibc-headers-2.3.4-2.25.i386.rpm
glibc-kernheaders-2.4-9.1.98.EL.i386.rpm
libgcc-3.4.6-3.i386.rpm
-------------------------------------------
Duaring the process of installing I haven't seen any error.


by the way,i am not from a English-speaking country,so there may exists some mistakes in spelling and using phrase even grammar.I would like to apologize for that,sorry.
 
Old 04-28-2011, 11:01 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
If it's a short/simple script, your best bet might be to just post the contents of the script here.
 
Old 04-28-2011, 11:18 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Welcome to LQ.

'cc1' should be in place with 'gcc-c++-3.4.6-3' installed.
( Like /usr/libexec/gcc/i386-redhat-linux/3.4.6/cc1 ).

Some rare programs could tease gcc not to find its own cc1.
( cc1plus has the same location, and may also not be found.)
I have seen that once or twice. Long time ago.
A link can do the trick :
# ln -s /usr/libexec/gcc/i386-redhat-linux/3.4.6/cc1 /usr/local/bin/

If you are not using gcc-3.2.3, you can leave the link. Else : delete it,
when you have finished with the program.


P.S. : Your old EL 4.2 has not been updated since 2005.
glibc-kernheaders-2.4-9.1.98.EL.i386.rpm is from that time.
 
1 members found this post helpful.
Old 06-01-2011, 09:24 PM   #4
newypei
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you,I have solved this problem.I reinstalled my linux system,and I choose to install these program-developing tools which were prompted.Thanks for your answers.
 
  


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



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


All times are GMT -5. The time now is 08:32 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