LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-15-2007, 02:20 PM   #1
picasso2526
LQ Newbie
 
Registered: Nov 2007
Posts: 2

Rep: Reputation: 0
installing GCC 'no acceptable C compiler found'


I am trying to install gcc-4.2.0 on redhat 'Linux version 2.4.21-4.EL'

I am new to linux.. please provide as much detail as possible.

I wanted to install apache...but recevied the following error:

checking for gcc... no

Thats the reason i am now trying to install GCC.

Unfortunately i ran into another error and this is where i am stuck.

When I run '/gcc-build//gcc-4.2.0/configure' I get the following errors:

[root@localhost gcc-4.2.0]# /gcc-build//gcc-4.2.0/configure --prefix=/opt/gcc-4.2.0
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH

Can someone please let me know how to continue? Please provide as much detail as possible.
 
Old 11-15-2007, 02:26 PM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
If you have the original Red Hat discs, you can install an older version of gcc from there.
 
Old 11-19-2007, 09:05 PM   #3
picasso2526
LQ Newbie
 
Registered: Nov 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by reddazz View Post
If you have the original Red Hat discs, you can install an older version of gcc from there.
reddazz -thanks for your reply...

Yes, I do have the original CDs..

I found the rpm file on the cd and tried to install it using that rpm file but I got the following errors. Please see detailed information below:


[root@localhost gcc-build]# rpm -i compat-gcc-7.3-2.96.122.src.rpm
warning: compat-gcc-7.3-2.96.122.src.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: cannot create %sourcedir /usr/src/redhat/SOURCES

-> so I created the directory

mkdir /usr/src/redhat/SOURCES/gcc-2.96-20000731

[root@localhost gcc-build]# rpm -i compat-gcc-7.3-2.96.122.src.rpm
[root@localhost gcc-build]#

-> I though this is suppose to install gcc already ??
# gcc
-bash: gcc: command not found

-> So I went to the directory and found the source code and tried installing it from there but got the error below:

commands:
cd /usr/src//redhat/SOURCES/

bzip2 -d gcc-2.96-20000731.tar.bz2

tar xvf gcc-2.96-20000731.tar

cd /usr/src/redhat/SOURCES/gcc-2.96-20000731

Error Below:

[root@localhost gcc-2.96-20000731]# ./configure
Configuring for a i686-pc-linux host.
Created "Makefile" in /usr/src/redhat/SOURCES/gcc-2.96-20000731 using "mt-frag"
./configure: line 7: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

Not sure where to go from here...
 
  


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, no acceptable c compiler found tomzo Linux - Newbie 3 01-22-2007 03:56 AM
How to install GCC? error "no acceptable compiler found" rohan208 Red Hat 3 04-19-2006 05:53 AM
no acceptable C compiler found jesusphreak Linux - Software 4 04-07-2005 08:50 PM
no acceptable C compiler found OsirisX Linux - Software 1 02-10-2005 08:06 PM


All times are GMT -5. The time now is 09:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration