LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-06-2010, 12:54 PM   #1
miamagoo
Member
 
Registered: Jun 2010
Posts: 32

Rep: Reputation: 15
RHEL gcc


Hello,

I just installed Redhat Enterprise Linux version 5.1.x on my computer and need to install/add the package for gcc. I am a total newbie, please advise how easiest to do this.
 
Old 07-06-2010, 12:58 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Please do not post duplicate threads---leaving this one open since it is in the right forum.

I would assume that gcc is available using the package manager. Do you have this setup--with your RHN account, etc.?

If you are not paying for RHEL then you will not be able to install things with the package manager---you will be better off iwth a different distro.
 
Old 07-06-2010, 01:08 PM   #3
miamagoo
Member
 
Registered: Jun 2010
Posts: 32

Original Poster
Rep: Reputation: 15
Sorry about the double post.

I have paid for RHEL. I have not setup anything through my RHN account. I suppose this is the "support account"?
 
Old 07-06-2010, 01:15 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by miamagoo View Post
Sorry about the double post.

I have paid for RHEL. I have not setup anything through my RHN account. I suppose this is the "support account"?
I'm not clear on the details, but i think you have to register with RedHat Network (RHN), so that you can access the repositories.
 
Old 07-06-2010, 01:27 PM   #5
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
Should be as simple as :

1) su <password>
2) yum install gcc-c++

.. Which will install gcc, g++, and files
required to use the compilers.
..
 
Old 07-06-2010, 01:30 PM   #6
miamagoo
Member
 
Registered: Jun 2010
Posts: 32

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by knudfl View Post
Should be as simple as :

1) su <password>
2) yum install gcc-c++

.. Which will install gcc, g++, and files
required to use the compilers.
..
There is no gcc-c++ package - how do I find out what package names are available?
 
Old 07-06-2010, 01:35 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
The package manager has search tools--personally, I'm not up on RedHat stuff and don't know the details.

In addition to YUM, have you used the GUI package manager?
 
1 members found this post helpful.
Old 07-06-2010, 01:47 PM   #8
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
su
yum search gcc


The file list (EL 5.3) says gcc-c++-4.1.2-44.el5
I don't know why you say "There is no gcc-c++ package" ?
gcc-c++ : same name, all versions, any Redhat.
Is also on the install DVD / 'cd : disk 2'.
..
 
Old 07-06-2010, 08:52 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,349

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
There's a nice list of yum cmds & meanings here
https://access.redhat.com/kb/docs/DOC-2531
 
Old 07-06-2010, 09:53 PM   #10
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
A thought : The package gcc-c++ can be in a particular
development repo, not enabled ?
Redhat has these groups for non server packages, I think.
Please ask Redhat.

If you only need the c compiler to work :
# yum install gcc glibc-devel glibc-headers
......

P.S :
EL 5.1 is an old version. The new version with the security
updates : EL 5.5 .
( Is free to download. Only the account will cost.
No account = no packages available.)
.....

Last edited by knudfl; 07-06-2010 at 10:00 PM.
 
Old 07-07-2010, 08:23 AM   #11
miamagoo
Member
 
Registered: Jun 2010
Posts: 32

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by knudfl View Post
su
yum search gcc


The file list (EL 5.3) says gcc-c++-4.1.2-44.el5
I don't know why you say "There is no gcc-c++ package" ?
gcc-c++ : same name, all versions, any Redhat.
Is also on the install DVD / 'cd : disk 2'.
..
yum search gcc turned up gcc.x86_64 - and it has been installed. I think I just don't know what I am doing.... I will do some more research.
Thanks
 
Old 07-07-2010, 08:23 AM   #12
miamagoo
Member
 
Registered: Jun 2010
Posts: 32

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by knudfl View Post
A thought : The package gcc-c++ can be in a particular
development repo, not enabled ?
Redhat has these groups for non server packages, I think.
Please ask Redhat.

If you only need the c compiler to work :
# yum install gcc glibc-devel glibc-headers
......

P.S :
EL 5.1 is an old version. The new version with the security
updates : EL 5.5 .
( Is free to download. Only the account will cost.
No account = no packages available.)
.....
Ya, I've got 5.3
 
  


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
Errors installing gcc on RHEL 4 Isuru Divarathne Linux - Software 3 10-22-2009 01:23 AM
Installing Gcc Compiler on RHEL 4 anilhyd Linux - Software 1 11-01-2007 04:45 PM
GCC-4.0.3 - Pass 1 failed on RHEL 4 shailesh_mishra Linux From Scratch 4 05-31-2007 11:44 PM
Login problems with XDMCP from a pre-RHEL-4 client to a RHEL-4 server running KDE cspao Red Hat 0 07-21-2006 06:30 AM
Installing gcc 2.95 in RHEL 3 airizar Red Hat 2 09-14-2005 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:01 AM.

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