LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-06-2011, 12:12 PM   #1
bstafford51
LQ Newbie
 
Registered: Jul 2008
Posts: 23

Rep: Reputation: 1
gcc4 install / upgrade from v3.


my current version of gcc is "gcc version 3.4.6 20060404 (Red Hat 3.4.6) I need to upgrade to v41.2. I downloaded the rpms for RedHat v4 2.6.9-100.ELsmp. I executed rpm -ivh gcc4-c++-4.1.2-44.EL4_8.1.x86_64.rpm, gcc4-java-4.1.2-44.EL4_8.1.gcc4-gfortran-4.1.2-44.EL4_8.1.x86_64.rpm, x86_64.rpm, libmudflap-devel-4.1.2-44.EL4_8.1.x86_64.rpm. Each time the system returns that the rpm is already installed. no errors occurred duringhte install. yet gcc -v indicates that gcc is still at v3. ANy help.
 
Old 07-06-2011, 01:44 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The "gcc4-c++-4.1.2-44.EL4_8.1" is not an update : Is an extra compiler.
Providing /usr/bin/gcc4 , /usr/bin/g++4 : 'gcc4 -v' and 'g++4 -v' will work.
( You can have as many different compilers as you want, installed at the same time.)

Using the gcc4 compiler, examples :
1) export CC=gcc4 CXX=g++4 && ./configure && make

2) gcc4 -o file file.c

..

Last edited by knudfl; 07-06-2011 at 01:46 PM.
 
1 members found this post helpful.
Old 07-06-2011, 04:30 PM   #3
bstafford51
LQ Newbie
 
Registered: Jul 2008
Posts: 23

Original Poster
Rep: Reputation: 1
gcc upgrade

Ok, thanks, that clears up a lot. Is there an upgrade /update to gcc3.4.6?
 
Old 07-06-2011, 04:44 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
WHAT os is this ????

from your first post is looks like rhel4 ( 4.9 is the current 4 )
the 4 series is hitting end of life soon . the current version is RHEL 6.1

for major version upgrades you do a clean new install -- you are 2 major versions out of date

now the current 4 series is 4.9 and still supported ( soon to be at End Of Life)
the only way is to install a newer os
Like the current rhel 6.1 ( that will install gcc 4.4 )

Quote:
Is there an upgrade /update to gcc3.4.6?
in rhel4 -- NO

you can install a thired party build of a bit newer one ( side by side) but there is NO rhel4 "upgrade"

Last edited by John VV; 07-06-2011 at 04:45 PM.
 
1 members found this post helpful.
Old 07-06-2011, 05:35 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
Is there an upgrade /update to gcc3.4.6 ?
No. And there is no reason for an update of the system compiler.
( Which should never be changed.)
Except for bug fix updates. # 'yum install gcc-c++' etc. takes care of that.
( # yum update <package> ).
( The latest is gcc-3.4.6-11.el4_8.1.i386.rpm, gcc-c++-3.4.6-11.el4_8.1.i386.rpm,
gcc-g77-3.4.6-11.el4_8.1.i386.rpm ( 14-Jan-2010 )).

If you really want a contemporary OS, it's SL6 / EL 6 like said in post # 4.
The free version is Scientific Linux SL6 http://www.scientificlinux.org/

..
 
1 members found this post helpful.
Old 07-07-2011, 08:18 AM   #6
bstafford51
LQ Newbie
 
Registered: Jul 2008
Posts: 23

Original Poster
Rep: Reputation: 1
Ok, thanks to all. Useful info from all. Unfortunately I'm stuck in RHv4 land until the application vendor upgrades their app. "Legacy application" is a neat way of saying old crap. But we press on. In one year Linux goes the way of the dinosaur and so do I, replaced by Windows in the cloud.

Last edited by bstafford51; 07-07-2011 at 08:28 AM.
 
Old 07-07-2011, 10:00 AM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
In one year Linux goes the way of the dinosaur and so do I, replaced by Windows in the cloud.
i would not want your job in a year

replacing red hat with windows
going from a solution that NEVER crashes( rhel) to one that ALWAYS crashes ( windows )


Quote:
I'm stuck in RHv4 land until the application vendor upgrades their app
?? that is like waiting for MS to "upgrade" winXP software to win7 versions -- that is not going to happen.

the reason you are using ( and installed )RHEL4 ,back 5 years ago, was the 7 year support .
with NO MAJOR changes and only the SECURITY fixes
it is VERY stable .
 
  


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
Cannot install gcc4.2-c++ package. milarze Linux - Newbie 19 05-17-2011 11:19 PM
RH9.3 install gcc4.2.2 ,libstdc++.so.6 problem bangqian.chen Linux - Software 4 12-11-2007 08:44 PM
[SOLVED] gcc4.1.1 install issue. brave heart Red Hat 8 08-27-2007 04:13 AM
install GCC3.2 but remain GCC4.1 in FC6 oneday Linux - Software 1 08-22-2007 05:51 AM
trying to install gcc4.3 from downloaded archive piccolo solo Linux - Software 15 04-09-2006 03:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:14 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
Open Source Consulting | Domain Registration