Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to install GCC on Red Hat Enterprise 4?

1,339 views
Skip to first unread message

freefa...@yahoo.com

unread,
Jul 1, 2011, 1:01:45 AM7/1/11
to
Hi, does anyone know how to install gnu C compiler on Red Hat
Enterprise 4? Where to download it and instructions to install it?
Thanks.

Robert

unread,
Jul 1, 2011, 1:51:37 AM7/1/11
to
On Thu, 30 Jun 2011 22:01:45 -0700, freefatherly wrote:

> Hi, does anyone know how to install gnu C compiler on Red Hat Enterprise
> 4? Where to download it and instructions to install it? Thanks.

Have you tried to use YUM or does RH4 use UP2DATE

--

Regards
Robert

Linux
The adventure of a lifetime.

Linux User #296285
Get Counted
http://counter.li.org/

Eef Hartman

unread,
Jul 1, 2011, 4:55:14 AM7/1/11
to

If it is like CentOS 4:
yum install gcc libgcc
will install the standard 3.4.6 compiler, while
yum install gcc4
will install a (preview of) the 4.x compiler (4.1.2).
As Red Hat Enterprise 4 is so old, that's it (current release is
RHEL 6).

PS: you must have the right Red Hat Enterprise repositories enabled in
/etc/yum.repos.d
and have the right to access those, I don't know what the
rules for RHEL 4 are.
We here only have their CentOS equivalents (4.8 and 5.6), we haven't
got a RHEL license.
--
******************************************************************
** Eef Hartman, Delft University of Technology, dept. SSC/ICT **
** e-mail: E.J.M....@tudelft.nl - phone: +31-15-27 82525 **
******************************************************************

Jan Gerrit Kootstra

unread,
Jul 2, 2011, 1:33:34 AM7/2/11
to
Op 01-07-11 10:55, Eef Hartman schreef:

> freefa...@yahoo.com wrote:
>> Hi, does anyone know how to install gnu C compiler on Red Hat
>> Enterprise 4? Where to download it and instructions to install it?
>> Thanks.
>
> If it is like CentOS 4:
> yum install gcc libgcc
> will install the standard 3.4.6 compiler, while
> yum install gcc4
> will install a (preview of) the 4.x compiler (4.1.2).
> As Red Hat Enterprise 4 is so old, that's it (current release is
> RHEL 6).
>
> PS: you must have the right Red Hat Enterprise repositories enabled in
> /etc/yum.repos.d
> and have the right to access those, I don't know what the
> rules for RHEL 4 are.
> We here only have their CentOS equivalents (4.8 and 5.6), we haven't
> got a RHEL license.

Eef, and OP,


On RHEL 4 after you register the server or workstation to RHN

up2date gcc

will install the product and it's dependancies.

yum is only available on RHEL5 and newer.

How was RHEL 4 installed, for the gcc should also be on your
installation CD's.


Kind regards,


Jan Gerrit

Eef Hartman

unread,
Jul 5, 2011, 4:10:43 AM7/5/11
to
Jan Gerrit Kootstra <jan.g...@kootstra.org.uk> wrote:
> yum is only available on RHEL5 and newer.

It _is_ in our CentOS 4 system:
$ rpm -qa|grep yum
yum-metadata-parser-1.0-8.el4.centos
yum-2.4.3-4.el4.centos
yum-plugin-priorities-0.0.7-2.c4

but that - of course - may be a CentOS addition.
As I said before, we don't have a "real" RHEL here, just the
CentOS equivalents.

By the way:
$ cat /etc/redhat-release
CentOS release 4.9 (Final)
is what's installed here (on ONE system) because of some project that
needs the compile environment of gcc 3.x (we've got both 3.4.6 as well
as 3.2.3 installed there).

gunturani...@gmail.com

unread,
Jan 16, 2013, 2:45:54 AM1/16/13
to
how install gcc in redhat 5.3 th' rpm

Jan Gerrit Kootstra

unread,
Jan 16, 2013, 5:24:58 PM1/16/13
to
Op 16-01-13 08:45, gunturani...@gmail.com schreef:
Do you have a valid Red Hat subscription?

go to http://rhn.redhat.com

be aware RHEL 4.x is out of support.

Red Hat 5.3 or RHEL 5.3?

RHEL 5.3: yum install gcc
0 new messages