LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Quick question on this error... Please help (https://www.linuxquestions.org/questions/linux-newbie-8/quick-question-on-this-error-please-help-166695/)

kkj 04-05-2004 11:18 PM

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?

kkj 04-05-2004 11:47 PM

Please someone help, I really need to know !

Demonbane 04-05-2004 11:54 PM

do you have gcc installed?

jax8 04-05-2004 11:56 PM

to check type

rpm -q gcc

win32sux 04-05-2004 11:57 PM

export CC="/path/to/your/c/compiler"

kkj 04-06-2004 12:00 AM

How do I do that?
It says I dont have gcc, where can I get it?

jax8 04-06-2004 12:19 AM

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

kkj 04-06-2004 12:22 AM

Oh ok, thanks for teh info!


All times are GMT -5. The time now is 12:34 AM.