LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-22-2003, 06:31 PM   #1
MrCarl
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Rep: Reputation: 0
Urgent Help Needed! Error: Must set the environment variable CC to a working compiler


Hi,

Im relatively new to linux and Im trying to setup a Linux Web Server using Slackware 9. Ive completed the install fine but have been having trouble installing anything because when I come to run ./configure it gives me this error:

*** You must set the environment variable CC to a working compiler.

I had selected GCC as one of the packages to install on setup so im unsure why im getting this, I even downloaded the source for GCC again to trying setting that up again but I get the same error as well.

How do I get this sorted??

Thanks...

- Carl S
 
Old 09-22-2003, 07:03 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
I am urgently here to help you

What do you get when you type:
gcc -v

And when you type:
env

Post up those results.

Cool
 
Old 09-22-2003, 07:47 PM   #3
MrCarl
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Original Poster
Rep: Reputation: 0
I think I might know where I went wrong... I think my install was a bit too 'Minimal' !!

Although I installed these:

[X] gcc GNU gcc-3.2.2 C compiler
[X] gcc-g++ GNU C++ compiler for gcc-3.2.2

I never installed any PACKAGES FROM SERIES L (Libraries)

Am I right in thinking one of these are crucial for compiling C ??

If this is true which packages from the Libraries series should I install?? I dont really want to put them all on as the HDD on my test server is a bit on the slim side!!

- Carl S

P.S. Sorry MasterC im half way hru the 2nd reinstall so I will post those results if im still havin problems!! If u know which bits out of Libraries packages I need then please shout up tho
 
Old 09-23-2003, 12:42 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Off hand, I'm sure you'll need libc Look also for things like binutils, make, automake and so on (check LFS for more info on truly basic tools ( www.linuxfromsratch.org ) ).

Cool
 
  


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
I getting the error you must set the environmnet variable to a working compiler Devo174 Linux - Laptop and Netbook 1 06-08-2004 12:40 PM
Must set the environment variable CC to a working compiler MrCarl Linux - Software 1 09-23-2003 03:26 PM
Set Environment Variable lloyd_stevens Linux - Software 1 07-30-2003 01:38 PM
how to set CC environment variable mr.moto General 2 12-18-2001 02:02 AM
how do you set the environment variable CC? mr.moto Linux - General 0 12-17-2001 10:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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