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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
If I understand your question correctly, you don't have a C compiler available to you, but you want to build GCC from source.
Clearly without a C compiler, you will not be able to compile GCC from source, and no amount of setting of CC will help. Get yourself a binary distribution of GCC, then use that for compiling GCC.
My first recommendation is to fix your installation. Re-install your distribuition. I don't know how you got yourself to where you have a system, but no compiler. My guess is that it's likely that other things are broken as well.
Another thing you might do is to obtain a rescue CD that has a compiler on it, boot from it, and then compile GCC. You will have to set various command-line options like srcdir anud builddir correctly. Read the install README and use './configure --help' to find out more.
There are many rescue CDs out there. Googling for, say, "Linux rescue CD" should provide plenty of links, or you may check http://freshmet.net .
To compile the GCC it is assumed you have a commercial C compiler already installed which is something of a recursive pain in the neck.
Of course, your distrobution came with the compiler on the disk image. If you did not choose to modify the default software list during installation then it was not installed. Open YaST -> Software ->Install and Remove Software. Search for GCC or filter for Package Groups and find it under development.
None unfortunately, it simply doesn't do anything if I rpm -iv or use YaST. Thinks about it for a few seconds then goes back to what it was originally doing... i.e. if in the command line, will just go back to the cursor, no info, no error messages. I've check to see if it installed anything with rpm -q blah.rpm but nope, not installed.
Originally posted by co2 The distro of SuSE was from a magazine, and very much cut down. Hence, no GCC.
Looks like a new install then?
Hey, I just got distro of SuSe 9.0 from a magazine (probably the same one!) and I've noticed the distinct lack of GCC and annoyingly an extreme lack of a decent window manager.
Once I get the chance I'm gonna have a long play with it to try get it working to my liking. I'll let you know how I get on.
Cheers Niteskye... I presume you got the 2 x CD distro from LinuxUser? They do make apologise for not including everything. It'd be alright if my rpm or YaST was functioning correctly... does your YaST update work okay?
As for the rpm -qa, Demonbane... nope, nothing. Again, it thinks about it, but it just goes onto the command line cursor again without any feedback.