LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 06-30-2011, 11:41 PM   #1
newbie2011
LQ Newbie
 
Registered: Jun 2011
Posts: 4

Rep: Reputation: Disabled
how to install GCC in Red Hat Enterprise?


Hi, does anyone know how to install the GCC compiler onto a Red Hat Enterprise system? Where to download it, and instructions to install it. Thank you.
 
Old 07-01-2011, 01:18 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

The install command is 1) su 2) yum install gcc-c++
.. to have a working gcc with its dependencies.


If you don't want to pay for a Redhat license :
Install the free copy of RHEL = CentOS(5.6) instead http://www.centos.org/
Or for EL6 : Scientific Linux SL6 http://www.scientificlinux.org/
 
Old 07-01-2011, 02:01 AM   #3
A.Thyssen
Member
 
Registered: May 2006
Location: Brisbane, Australia
Distribution: linux
Posts: 158

Rep: Reputation: 44
Actually the better idea is to install the appropriate yum package groups

yum groupinstall "Development Tools"
yum groupinstall "Development Libraries"

List the groups available using
yum grouplist
 
Old 07-01-2011, 03:32 PM   #4
newbie2011
LQ Newbie
 
Registered: Jun 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by A.Thyssen View Post
Actually the better idea is to install the appropriate yum package groups

yum groupinstall "Development Tools"
yum groupinstall "Development Libraries"

List the groups available using
yum grouplist

Thank you for the responses from both of you.

In terms of the "yum" solution, does this mean that the GCC compiler is already on the Linux server, and the yum command
"pulls" it out? Or will it need to go thru the Net to retrive the GCC compiler in order to install it onto
the server?
 
Old 07-01-2011, 04:37 PM   #5
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by newbie2011 View Post
In terms of the "yum" solution, does this mean that the GCC compiler is already on the Linux server, and the yum command
"pulls" it out? Or will it need to go thru the Net to retrive the GCC compiler in order to install it onto
the server?
Thru the net.
 
Old 07-01-2011, 08:29 PM   #6
A.Thyssen
Member
 
Registered: May 2006
Location: Brisbane, Australia
Distribution: linux
Posts: 158

Rep: Reputation: 44
Though the yum package group should be part of the RHEL DVD, it is better to install it from the redhat repository, or a satellite server of that repository.
That way you get the latest patched version directly rather than the initial release version.

Also look at the EPEL third party packages from RpmFusion for extra packages. Many things are available via that repository that are not part of the official repository.
 
Old 07-01-2011, 08:31 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
the gcc 4.1 is in the group of packages , for 5.6, installed by {yum groupinstall "Development Tools"}
gcc,autotolls,make,packageconfig ,...


with RHEL ( what is this 5 or 6 ??? 5.6 or 6.1 ???or the older 4.9 ???) you buy a license
That gets you access to the software repos.( RHN)for installing software and security updates.

yum gets the rpm's from the RHN servers and installs them on YOUR system .
 
Old 07-03-2011, 02:29 AM   #8
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by newbie2011 View Post
Hi, does anyone know how to install the GCC compiler onto a Red Hat Enterprise system? Where to download it, and instructions to install it. Thank you.
You have installed RHEL.. So you must have the RHEL media. You can configure your own yum server.
So you can able to install the available packages from the media easily by yum command.

Follow the steps in the link.

http://www.linuxnix.com/2008/05/how-...dhatrhel5.html
 
Old 07-05-2011, 12:40 AM   #9
newbie2011
LQ Newbie
 
Registered: Jun 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for your responses.

I am told that yum will not work on my Red Hat Enterprise 4. It only works with version 5 and newer.

Please advise.
 
Old 07-05-2011, 12:45 AM   #10
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,355

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
In that case, use up2date, the precursor to yum http://kbase.redhat.com/faq/docs/DOC-2531. incidentally, RH did eventually offer yum on RHEL4.x.
Can you do

Code:
cat /etc/*release*
to get the exact version. I believe latest is 4.9
https://secure.wikimedia.org/wikiped...terprise_Linux

Last edited by chrism01; 07-05-2011 at 12:48 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to install Red Hat Enterprise Linux AS v3.0 anis_huq Linux - Newbie 3 07-08-2009 10:37 PM
Project made in Red Hat Enterprise 4 need to be able to run on Red Hat Enterprise 3 Elin Linux - Software 1 07-13-2006 12:22 PM
Red Hat Enterprise Linux 4 AS install mossless Linux - Enterprise 8 03-04-2006 12:12 PM
HowTo Install GCC on Red Hat Enterprise 3 ? skate Red Hat 4 02-27-2006 10:11 PM
install new gcc v3.4.5 over gcc v3.2.2 on red hat 9 mlaich Linux - Newbie 2 01-01-2006 08:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 07:32 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