LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-06-2004, 12:18 AM   #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-06-2004 at 12:47 AM.
 
Old 04-06-2004, 12:47 AM   #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-06-2004, 12:54 AM   #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-06-2004, 12:56 AM   #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-06-2004, 12:57 AM   #5
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 376Reputation: 376Reputation: 376Reputation: 376
export CC="/path/to/your/c/compiler"
 
Old 04-06-2004, 01: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, 01: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, 01: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


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


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