Skip to Content

How to set an enironment varialble??

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

Alaa's picture

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?

Alaa


husband of the Grand Waragi Master

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: 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?

Alaa's picture

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.

Alaa


husband of the Grand Waragi Master

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,

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)

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


Dr. Radut | forum