LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-21-2003, 09:06 PM   #1
ToothPaste
LQ Newbie
 
Registered: Apr 2003
Posts: 3

Rep: Reputation: 0
Installing GCC


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.

Any help is greatly appreciated.
 
Old 12-21-2003, 10:29 PM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Can't you install it from the redhat CD?
 
Old 12-21-2003, 10:39 PM   #3
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
agreed with the above user

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
 
Old 12-22-2003, 10:18 AM   #4
ToothPaste
LQ Newbie
 
Registered: Apr 2003
Posts: 3

Original Poster
Rep: Reputation: 0
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?
 
Old 12-22-2003, 12:38 PM   #5
cexshun
Member
 
Registered: Jan 2003
Distribution: Ubuntu Hardy Heron
Posts: 83

Rep: Reputation: 15
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.
 
Old 12-22-2003, 05:57 PM   #6
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
once again, agreed with the above user

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)
 
Old 12-22-2003, 09:58 PM   #7
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help on installing GCC. Jonka Linux - Software 2 11-12-2003 04:12 PM
Installing gcc 3.3 Shienarier Linux - Software 6 06-08-2003 11:25 AM
Installing GCC sovietpower Linux - Newbie 1 06-01-2003 05:28 PM
Installing GCC 3.1 over GCC 2.96...? aaronluke Linux - General 3 09-27-2002 05:28 AM
Installing gcc-2.95.3 X11 Linux - Software 2 04-26-2002 09:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration