Submitted by ekosha on Wed, 07/03/2007 - 19:49.
( categories: )
S3 All, I am a linux beginner and I am using suse 10.1. I was trying to download the gcc and I got this error when I wrote the following command: _ ekosha@linux-0hkx:~/gcc-3.3> ./configure
Configuring for a i686-pc-linux-gnu host. Created "Makefile" in /home/ekosha/gcc-3.3 using "mt-frag"/tmp/cNf3791/cNf3791.pos: line 8: cc: command not found
- The command 'cc -o conftest -g conftest.c' failed.
You must set the environment variable CC to a working compiler. __
My question is : What is the CC and how do I set it as an environment variable ?!!?
Thanks for your Help Guys


don't download gcc,
don't download gcc, install it from your suse CDs or remote package repositories instead.
don't we have a FAQ here explaining about packages and stuff?
cheers,
Alaa
husband of the Grand Waragi Master
http://www.manalaa.net
Re:How to set an enironment varialble??
Thanks for your reply! Amm but I don't know how to do that from the CD or what are the remote package repositories? Sorry Its my first real use of the system! Actually the reason why I am downloading it is that I am trying to configure my usb speedtouch modem and I was using this link: http://www.linux-usb.org/SpeedTouch/firmware/index.html which mentions that I should have gcc to run the commands to extract the firmware. Seems that I am really lost ! So what should I do?
packages are one of these
packages are one of these things that differ between one flavor of GNU/Linux and another.
so I'm not sure what you should do in suse, but the general idea is that there is a system tool (command line or graphical) that will show you a database of software packages available for you, you pick the package you want and the tool will isntall it for you, asking for CD media or downloading the packages from the internet.
this looks like a good intro to suse 10.1 package management
cheers,
Alaa
husband of the Grand Waragi Master
http://www.manalaa.net
Thanks
Thank u thats exactly what I need the link is great. And as for the pkg I remember now sone told me about that, the prob is that I can't connect to the internet yet ! Anyway Thanks a lot for the help and for that gr8 link!
oops, it is a known issue,
oops, it is a known issue, suse 10 dvd doesn't include gcc i understand that you can't install it from yast neither from internet nor from cd, so i tried to find rpm file from suse but didn't found any thing there may be with more patience you may found it anywhere or ask other suse users at their forum
also there is another way, you can compile it from source, but definetly you will need another cc like ISO C90 Compiler (as mentioned there), and you seems not having any c compiler ("The command 'cc -o conftest -g conftest.c' failed. You must set the environment variable CC to a working compiler. "), and i faild to find it also hope that may somehow help you or accurately help someone help you if you are totaly new to linux. (i don't concider myself newbie but linux without gcc looks very strange issue to me)
if you want to try another distribution try this test. i don't want you to be despaired (i am sure eglug guys can solve it tomorrow), but if you are new to linux you may want an easy start