Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 11-03-2004, 12:39 AM   #1
Registered: Sep 2004
Distribution: Slackware
Posts: 61

Rep: Reputation: 15
GCC Compilation Trouble

I am having trouble configuring GCC. I need it for several programs and I have been trying to get it to work to no avail. Here is the error code I get after typing ./configure :

[root@localhost gcc-3.4.2]# ./configure
loading 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
./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.
[root@localhost gcc-3.4.2]#

Any help is greatly appreciated. Thanks.
Old 11-03-2004, 12:44 AM   #2
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31

try typing: CC=gcc
and then: export CC
then retry ./configure

Are you using the bash shell?
Old 11-03-2004, 01:02 AM   #3
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
What exactly are you trying to compile?
Old 11-03-2004, 03:17 AM   #4
LQ Newbie
Registered: Nov 2004
Distribution: RedHat/Fedora/Slackware/Suse
Posts: 15

Rep: Reputation: Disabled
Actually, it appears that you don't have a C compiler installed (read as 'gcc not installed'). If you did have gcc installed properly, there should be a symbolic link from /usr/bin/cc to /usr/bin/gcc.


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
compilation prob with gcc srinis Programming 4 03-15-2005 05:53 AM
compilation prob with gcc srinis Linux - Newbie 2 03-11-2005 05:06 PM
GCC Compilation Errors The_Dish Programming 7 10-08-2004 05:33 PM
GCC 3.4.0 Compilation Crashes derryp Linux From Scratch 3 06-11-2004 05:22 PM
gcc compilation error Proger Programming 1 03-22-2003 01:32 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration