LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   RHEL gcc (https://www.linuxquestions.org/questions/linux-software-2/rhel-gcc-818309/)

miamagoo 07-06-2010 12:54 PM

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.

pixellany 07-06-2010 12:58 PM

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.

miamagoo 07-06-2010 01:08 PM

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"?

pixellany 07-06-2010 01:15 PM

Quote:

Originally Posted by miamagoo (Post 4025380)
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.

knudfl 07-06-2010 01:27 PM

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.
..

miamagoo 07-06-2010 01:30 PM

Quote:

Originally Posted by knudfl (Post 4025397)
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?

pixellany 07-06-2010 01:35 PM

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?

knudfl 07-06-2010 01:47 PM

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'.
..

chrism01 07-06-2010 08:52 PM

There's a nice list of yum cmds & meanings here
https://access.redhat.com/kb/docs/DOC-2531

knudfl 07-06-2010 09:53 PM

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.)
.....

miamagoo 07-07-2010 08:23 AM

Quote:

Originally Posted by knudfl (Post 4025420)
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

miamagoo 07-07-2010 08:23 AM

Quote:

Originally Posted by knudfl (Post 4025744)
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


All times are GMT -5. The time now is 02:40 PM.