LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing g++ 3.4.6 linux compiler (https://www.linuxquestions.org/questions/linux-newbie-8/installing-g-3-4-6-linux-compiler-584268/)

bavondrake 09-12-2007 05:35 PM

Installing g++ 3.4.6 linux compiler
 
Hi,
Im looking for rpm for g++3.4.6 package to install in my Redhat Advance Server3 machine but was unsuccessful.I have checked in RHN site but no success.

Below is my machine info is

[root@xxxxxx user]# uname -a
Linux 2.4.21-47.ELsmp #1 SMP Wed Jul 5 20:30:30 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux


thank you,

Bavon.

Peacedog 09-12-2007 06:18 PM

Are you looking for one of these packages?

https://rhn.redhat.com/errata/RHSA-2007-0220.html

Good luck. ;-)

bavondrake 09-12-2007 11:27 PM

Thanks,
Couple of things,

First,My machine is RHAS(v.3) and not RHEL(v.4),would it be a problem installing the package for RHEL(v.4) in RHAS(v.3)?

Second,do you know if gcc-c++-3.4.6-8.x86_64.rpm comes with g++3.4.6 package? coz i cant find the rpm which exactly match with g++3.4.6 in that list.

Third,any ftp site which i access these packages?..i have log in RHN but see only ISO rpm.


thanks,

Bavon

Junior Hacker 09-13-2007 12:46 AM

According to the output you posted of uname -a, you are running "Red Hat EL 3 AS". I would imagine all you need is the RHEL3 package. Go to RPM SEARCH and click on "Advanced search" to the right of the search field. On the next page, remove check marks for all distributions except RedHat EL 3, and put g++ in the search field and hit search. On the next page, click on the link of this package --> distcc-2.18.3-2.1.el3.rf.x86_64.rpm, on the next page, look at the contents of the rpm, you'll notice it contains g++-3.2.3. You will also see what all dependencies are required for this rpm with download links to them also.

From what I understood when I was at the GCC source web site, the important part of the gcc versions is the first number. gcc-296 is basically gcc-2 at it's last revision, gcc-3.2.3 is gcc-3, so is gcc-3.4, but gcc-3.4 is a latter version of gcc-3. Most distributions today have gcc-4. The version number is the first and important number when you need a specific version of gcc, the other numbers are called "extra version" where small refinements were added.
You will notice at RPM SEARCH that the package maintainer is Dag Wieers, if you want to dig more to see if you can find that specific version of gcc with the "4.6" extra version, go to his site and dig.

bavondrake 09-13-2007 10:08 AM

Junior Hacker,
Thanks,
I think we already installed the g++3.2.3 in our machines.What actually we were looking is the exact g++ 3.4.6 to perform some tests for our application.
see the output below

[user1@xxxxx-rh64 user1]# rpm -qa | grep gcc
compat-gcc-7.3-2.96.128
gcc-ssa-3.5ssa-0.20030801.48
gcc-g77-3.2.3-56
libgcc-ssa-3.5ssa-0.20030801.48
gcc-java-ssa-3.5ssa-0.20030801.48
gcc-3.2.3-56
gcc-c++-3.2.3-56
compat-gcc-c++-7.3-2.96.128
gcc-g77-ssa-3.5ssa-0.20030801.48
libgcc-3.2.3-56
gcc-java-3.2.3-56
gcc-c++-ssa-3.5ssa-0.20030801.48
libgcc-3.2.3-56
gcc-objc-3.2.3-56
gcc-objc-ssa-3.5ssa-0.20030801.48
gcc-gnat-3.2.3-56

Any idea on how we can get that package?..seems many g++ rpms are either 3.2.3 or lower or 4.X above

thanks,
Bavon

Junior Hacker 09-13-2007 10:36 AM

Well
If it exist for that distribution or as a src rpm, RPM SEARCH will find it. I would look for gcc-3.4.6-8.src.rpm at RPM SEARCH. A source rpm can be installed on a different distribution I would think. Check all the distribution's boxes, I found it there.


All times are GMT -5. The time now is 11:07 PM.