Installing gcc on RHEL4 Linux

Hi,

I'm a newbie in this forum and a newbie with administering Linux.

I need to install gcc 3.4.6-10 and I've downloaded and installed the rpm, but it seems that it did not do anything.

[root@server ~]# rpm -ivh gcc-3.4.6-10.src.rpm
   1:gcc                    ########################################### [100%]
[root@server ~]# rpm -q gcc
package gcc is not installed

What else should I do? :confused:

I hope someone can help me.

Thanks.

You need to build the package before installing:

rpmbuild --rebuild gcc-3.4.6-10.src.rpm

Take a look here for more on the issue --> Source Package Files and How To Use Them

1 Like

Also note that you will need a C compiler before you can compile GCC again.

1 Like

thanks guys. i will try this. in the meantime i'm also trying to find an rpm file in itself.