LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-05-2004, 11:18 PM   #1
kkj
LQ Newbie
 
Registered: Apr 2004
Location: CT
Distribution: Fedora Core 1
Posts: 28

Rep: Reputation: 15
environment variable - how do I change?


Hey guys,
while trying to install a .tar file, and using the command "./configure -prefix=/usr"
this message came up, and I wasn't sure how to do what it says :

*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

How do I set the enviorment?

Last edited by kkj; 04-05-2004 at 11:47 PM.
 
Old 04-05-2004, 11:47 PM   #2
kkj
LQ Newbie
 
Registered: Apr 2004
Location: CT
Distribution: Fedora Core 1
Posts: 28

Original Poster
Rep: Reputation: 15
Please someone help, I really need to know !
 
Old 04-05-2004, 11:54 PM   #3
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
do you have gcc installed?
 
Old 04-05-2004, 11:56 PM   #4
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
to check type

rpm -q gcc
 
Old 04-05-2004, 11:57 PM   #5
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
export CC="/path/to/your/c/compiler"
 
Old 04-06-2004, 12:00 AM   #6
kkj
LQ Newbie
 
Registered: Apr 2004
Location: CT
Distribution: Fedora Core 1
Posts: 28

Original Poster
Rep: Reputation: 15
How do I do that?
It says I dont have gcc, where can I get it?
 
Old 04-06-2004, 12:19 AM   #7
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
you can get it off the installation CD's

Insert them and load the autorun file.

check the "development tools section". Then click update.

gcc is a compiler you see so with out it you cant compile your code from source

-jax
 
Old 04-06-2004, 12:22 AM   #8
kkj
LQ Newbie
 
Registered: Apr 2004
Location: CT
Distribution: Fedora Core 1
Posts: 28

Original Poster
Rep: Reputation: 15
Oh ok, thanks for teh info!
 
  


Reply



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
quick question about LQ mikedeatworld Linux - General 4 09-30-2004 12:06 PM
Question Concerning ISO's and one quick question. evrae Linux - Software 2 06-21-2004 03:53 AM
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
Quick RH question 777SPy Linux - General 2 12-23-2003 05:55 PM
quick question akshunj Linux - Software 1 12-14-2003 02:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:22 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
Open Source Consulting | Domain Registration