Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
when trying to compile software which I had just downloaded for may freshly installed linux mandrake 10.1, I found that the CC varable is not set. I did a search and cound not find gcc.
I tried installing gcc from the cd but I kept getting error messages, hence I think that some of the rpm's on the cd are corrupt.
I found gcc on the internet but I need to have a compiler to compile the source code. Is there a way of insalling gcc if I dont have a already installed compiler?
What errors do you get trying to install from CD? Chances are they're just missing dependencies you can install. You should be able to get the RPMs off a Mandrake mirror site if your CDs are in fact corruot. You can also use uRPMI top install stuff on Mandrake, but since I don't use the distro, someone else will need to tell you about that.
Assuming, of course, that the problem is with dependencies.
I'd suggest doing a clean install of a precompiled GCC binary from a new RPM. When installing, pay close attention to any errors or warnings. If there are any dependency problems, he should get very clear and unmistakable error messages to that effect.
Whichever approach he takes, it should be pretty easy to resolve the problem.
PS:
The problem might even be a $PATH problem! It wouldn't hurt to try the following:
1. Type:
find / -name gcc -print 2> /dev/null
2. Go away for a a cup of coffee or a walk around the block ;-)
3. If anything is printed (like "/usr/bin/gcc"), then make sure that directory is
in your $PATH.
hi
Im sorry I dident make my self more clear, I use drakermp, which which automatily installs dependant packages. The error with drakermp is "bad header binary somthing somthing" and rpm -i returns "not a rpm or somthing" I think the best bet is to downlaod the gcc binary,.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.