LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 11-03-2009, 02:34 PM   #1
kristenannie
LQ Newbie
 
Registered: Nov 2009
Posts: 2
Thanked: 0
Help installing GCC


[Log in to get rid of this advertisement]
I am used to working on Ubuntu and am trying to get something going on a machine that is running Redhat Enterprise Linux Server release 5.4.

I want to do something that seems like it should be pretty simple - I just want to install gcc.

I started going to rpm route. Please forgive me - I am totally new to rpms. First I tried downloading an rpm file. I searched on this site:

http://rpmfind.net/linux/rpm2html/se...&system=&arch=

And I wasn't sure which one to pick.

http://unclean.org/howto/gcchowto.html

When I tried installing it I got a message that there are a bunch of dependencies I don't have. I feel like I am making this way harder than it needs to be. Is there an easy way to install gcc?

Thanks!
Kristen
macos kristenannie is offline     Reply With Quote
Old 11-03-2009, 02:41 PM   #2
jlightner
Senior Member
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 3,551
Thanked: 147
RHEL5 (and Fedora and CentOS 5) use rpm and yum. RPM = RedHat Package Manager. YUM = Yellowdog Update Manager.

Yum will install rpm packages AND resolve dependencies.

You should have registered your system on RedHat Network (RHN) at the end of the install. If you did then simply running "yum install gcc" would download and install gcc and the dependencies.

Prior to running that you should run "rpm -q gcc" to verify it isn't already installed. Your issue may be that you have gcc but its not in your PATH. Type "rpm -ql gcc" will show you where all the files the rpm installed are.
jlightner is offline     Reply With Quote


Thanked by:
Old 11-03-2009, 02:44 PM   #3
knudfl
Senior Member
 
Registered: Jan 2008
Location: Copenhagen, Denmark
Distribution: pclos2009.2, slack13, Debian Lenny (+30 others, for test only)
Posts: 2,935
Thanked: 277
Welcome to LQ.

Getting the c compiler on Redhat EL 5 :
Please do these commands in the terminal :
1) su <enter-password>
2) yum install gcc

For the c++ compiler ( g++ ) :
3) yum install gcc-c++
.....
linuxpclinuxos knudfl is offline  
Tag This Post ,
Reply With Quote


Old 11-03-2009, 04:58 PM   #4
kristenannie
LQ Newbie
 
Registered: Nov 2009
Posts: 2
Thanked: 0

Original Poster
By gosh golly it worked! Thank you for enlightening me - life was sucking without YUM! I was starting to think that anyone who used RedHat was crazy. Much better now!

-Kristen
macos kristenannie is offline     Reply With Quote



Reply

Bookmarks


Thread Tools

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
Installing vmware on Open Suse 11.1 - Requires original gcc 4.32 - gcc now 4.3 cyclops.matrix Linux - Software 2 08-31-2009 03:52 PM
Installing gcc - need help Jinouchi Linux - Software 7 04-09-2008 01:24 AM
installing gcc sndt Linux - Newbie 2 03-29-2006 08:06 AM
Installing GCC holyfeces Linux - Newbie 5 01-10-2005 03:35 PM
Installing GCC 3.1 over GCC 2.96...? aaronluke Linux - General 3 09-27-2002 06:28 AM


All times are GMT -5. The time now is 03:13 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration