Operating System - Linux
1820254 Members
2818 Online
109622 Solutions
New Discussion юеВ

gcc 3.2 installation on Redhat

 
saju_2
Respected Contributor

gcc 3.2 installation on Redhat

Hi

I would like to get the procedure to install gcc 3.2 on RH9.

uname -a output is
Linux ftpsvr 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 i686 i386 GNU/Linux

I have downloaded the gcc-3.2.tar

Regards
CS
13 REPLIES 13
Steven E. Protter
Exalted Contributor

Re: gcc 3.2 installation on Redhat

tar xvf gcc-3.2.tar

There should be installation instructions in the tar.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
T G Manikandan
Honored Contributor

Re: gcc 3.2 installation on Redhat

gcc rpm comes with the OS cd

check the cd#1 for RH9 under Redhat/RPMS

the dependency files would also exist there
Gopi Sekar
Honored Contributor

Re: gcc 3.2 installation on Redhat

I believe you may not get latest RPM based version of gcc for your distribution (RH9 was way old).

Only way out for you is downloading tar.gz of gcc 3.2, uncompress it by 'tar -zxvf gcc-3.2.tar.gz' then go to the extracted directory, then execute './configure --help'

it will list the configuration options available for compiling gcc, choose which one you want and re call configure like './configure '.

if you want default parameters then simply call ./configure

this will create Makefiles for gcc to compile, then call 'make' to compile gcc which will produce the required libraries and executables if any.

now as root run 'make install' to install to your system. By default these packages get installed under '/usr/local/'

Just to try your luck, try searching 'http://www.rpmfind.net' for any new gcc-3.2 RPM package for RH9

Hope this helps,
Gopi
Never Never Never Giveup
Vitaly Karasik_1
Honored Contributor

Re: gcc 3.2 installation on Redhat

RHL9 comes with gcc3.2.
So just install RPMs (rpm -i gcc*rpm) from RHL9 installation CDs or (the best) from RHL9 updates.
saju_2
Respected Contributor

Re: gcc 3.2 installation on Redhat

Hi

I currently don't have the RH CD.Also i am not interested in the rpm installation part. I just want to try the complie and configure part..!!!:)

I tried gopi's method and it gave me an error saying that

configure: error: no acceptable cc found in $PATH

echo $PATH is /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/b
in:/root/bin

I am completly new this compling stuff.

Regards
CS
Steven E. Protter
Exalted Contributor

Re: gcc 3.2 installation on Redhat

Check the PATH for the cc binary.

find / -name cc

If that result is on the PATH, you are good. If not, modify the PATH so that cc is on the PATH.

If there is no cc, then get and install one.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vitaly Karasik_1
Honored Contributor

Re: gcc 3.2 installation on Redhat

Saju,
probably you don't have C compiler in your linux box at all;
and compile something without compiler may be a little tricky :-)


So I suggest you to install gcc (+ make and so on) from RPMs and after that you'll be able compile everything - from Apache to kernel.
Gopi Sekar
Honored Contributor

Re: gcc 3.2 installation on Redhat


gcc is the one which gives the C compiler and you need one to compile gcc first :) much like chicken egg problem.

read the README/INSTALL file which comes with gcc tar file, it will clearly give the pre-requisties. Go by that and install the required packages first before continuing on the gcc installation.

Hope this helps,
Gopi
Never Never Never Giveup
Huc_1
Honored Contributor

Re: gcc 3.2 installation on Redhat

check out the following link

http://gcc.gnu.org/install/

and for 3.2 doc check

http://gcc.gnu.org/onlinedocs/

Jean-Pierre Huc
Smile I will feel the difference
saju_2
Respected Contributor

Re: gcc 3.2 installation on Redhat

HI

I am trying to download and install the necessary dependecies for gcc installation and i am not able to get the below dependency.
glibc-devel >= 2.2.90-12

Any idea any other version of this will work or from which location (exact location) i can download it?

Thanks in advance
CS
Vitaly Karasik_1
Honored Contributor

Re: gcc 3.2 installation on Redhat

Gopi Sekar
Honored Contributor

Re: gcc 3.2 installation on Redhat

download the glibc-devel rpm package from this location:
http://www.rpmfind.net//linux/RPM/redhat/updates/9/i386/glibc-devel-2.3.2-27.9.7.i386.html

install the RPM, after the installation is over, continue with gcc compilation.

Hope this helps,
Gopi
Never Never Never Giveup
saju_2
Respected Contributor

Re: gcc 3.2 installation on Redhat

Hi

Finally I have installed it ...Lot of dependecy issues and interestingly i was trying to compile gcc without a compiler...!!!!

Thank for helping ...

Regards
CS