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.
Trying to recompile the 2.6.0 kernel and got an error at "make menuconfig": gcc: command not found.
I did a pretty basic install of RedHat 9.0 and apparently GCC was not installed on the system, which is pretty strange because I just pretty much kept clicking "Next" through the entire install except when it asked me for specifics, at which point I selected DNS, Mail, and WWW servers.
Typing 'gcc' at the command line gives me a 'command not found' message as opposed to a 'no input file' message if it was installed.
I went to gcc.gnu.org to download and install it, but I guess you need an existing version of GCC to do this.. it also brings up a question: If I need GCC to install GCC, then... how do you even get GCC on there to begin with?
I remember I had this issue before and I spent hours trying to find information on how to install this, but I gave up and just ended up re-installing everything from scratch; I'd kinda like to avoid that this time.
u must have elected to do a personal desktop install instead of a workstation install when you were going through the installer (personal desktop is default and leaves out a lot of important packages)
in redhat, use the add/remove programs tool and find the package for gcc; it will ask for a redhat cd and just put it in and all should be well
also, there should be a redhat package out on the web, so try looking for that too
Simple enough! Can't believe I didn't even think of that!
Thanks so much!
While we're on the topic.. what would be a solution for users who don't have RedHat? When I mentioned above that I had this problem in the past, I believe I was using another distro (slackware). Would I have to load an RPM installer and take it off the RedHat CD as well?
Your best bet for gcc install when no gcc exists it a binary install. .deb, .pkg, .rpm, whatever. Then, you can compile the new gcc. Remove the old gcc binary right before the make install.
most distros (very close to all) will come with a precompiled version of gcc, even slackware
this precompiled version is usually in a package format built by the makers of that distro, for examples: redhat and rpm packages, mandrake and their special rpm packages, slackware and .tgz packages, debian and .deb packages, and so forth
however, i also do wonder how gcc is installed in the first place when no compiler was around (i kind of have an idea about how it may have begun, but it is too difficult to put in words)
Although I'm not familiar with the history of C, but come to think of it, it has to start with something....gcc is not the first ever C compiler, nor is C the lowest level programming language.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.