Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-26-2003, 11:41 PM   #1
LQ Newbie
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
setting environmental variable cc to a working compiler

I am trying to configure gcc-3.3.2 when I go to configure I get this error message
"# ./configure
Configuring for a i686-pc-linux-gnuoldld host.
Created "Makefile" in /root/gcctest/gcc-3.3.2
using "mt-frag"
./configure: line 8: cc: command not found
*** The command 'cc -o conftest -g conftest.
c' failed.
*** You must set the environment variable CC t
o a working compiler."

I am having a hard time getting getting the CC to a working compiler. Where do I go from here?
Old 10-27-2003, 12:00 AM   #2
Senior Member
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
whereis gcc
Note the location of gcc (should be in /usr/bin on most systems)

as root:
cd <location of gcc>
ln -s gcc cc

Walla.... you're done
Old 10-27-2003, 12:30 AM   #3
LQ Newbie
Registered: Oct 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Whenever I type in "whereis gcc" it just says

It doesnt give a location. So then if I type the ln -s gcc cc after I cd to where I put the gcc it tells me ln: `cc/gcc': File exists. Any advice would be greatly appreciated.


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
Setting an environmental variable maevious Linux - Newbie 6 11-24-2005 04:15 PM
I getting the error you must set the environmnet variable to a working compiler Devo174 Linux - Laptop and Netbook 1 06-08-2004 11:40 AM
nohup tcsh (environmental variable) podollb Linux - Software 0 05-17-2004 05:44 PM
Must set the environment variable CC to a working compiler MrCarl Linux - Software 1 09-23-2003 02:26 PM
Urgent Help Needed! Error: Must set the environment variable CC to a working compiler MrCarl Linux - Software 3 09-22-2003 11:42 PM

All times are GMT -5. The time now is 05:55 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration