LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-12-2007, 06:35 PM   #1
bavondrake
Member
 
Registered: Aug 2007
Posts: 40

Rep: Reputation: 15
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.
 
Old 09-12-2007, 07:18 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Are you looking for one of these packages?

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

Good luck. ;-)
 
Old 09-13-2007, 12:27 AM   #3
bavondrake
Member
 
Registered: Aug 2007
Posts: 40

Original Poster
Rep: Reputation: 15
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
 
Old 09-13-2007, 01:46 AM   #4
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
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.

Last edited by Junior Hacker; 09-13-2007 at 01:50 AM.
 
Old 09-13-2007, 11:08 AM   #5
bavondrake
Member
 
Registered: Aug 2007
Posts: 40

Original Poster
Rep: Reputation: 15
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
 
Old 09-13-2007, 11:36 AM   #6
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
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.

Last edited by Junior Hacker; 09-13-2007 at 11:38 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing c compiler RH sbabcock23 Linux - Newbie 11 01-11-2007 02:38 PM
Installing a compiler in linux jkumars Linux - Software 6 12-22-2004 07:15 AM
C compiler not installing xstealthrtx Linux - Newbie 12 11-23-2004 11:12 AM
installing the c++ compiler jmg1894 Linux - Software 1 06-17-2004 04:59 PM


All times are GMT -5. The time now is 04:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration