LinuxQuestions.org
Register a domain and help support LQ
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 11-10-2006, 03:07 AM   #1
Priyakrishnan
LQ Newbie
 
Registered: Nov 2006
Location: India
Distribution: Redhat 3.2.2-5
Posts: 5

Rep: Reputation: 0
Red face Installing gcc 2.95 compiler in a RH 3.2.2-5 machine


Hello everybody,

I have a linux machine that has Red Hat version 3.2.2-5, with GCC compiler 3.2.2. I need gcc 2.95 instaed. How do I downgrade it to 2.95. Can I install RPM for 2.95, and then select 2.95 compiler or do I have to uninstall 3.2.2 first and then install 2.95.

Another major concern I have is , Will I have instability by downgrading the gcc compiler.

Please! Please ! Help.

Thanks in advance
Priya
 
Old 11-11-2006, 06:29 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
First Red Hat has never released a version 3.2.2-5 so perhaps your confusing the gcc version number here. Second no you do not downgrade gcc to 2.9.5 this will break the OS, instead install the compat packages for gcc for example;

compat-gcc-32-3.2.3-47.3.i386.rpm
compat-gcc-32-c++-3.2.3-47.3.i386.rpm
compat-glibc-2.3.2-95.30.i386.rpm
compat-libgcc-296-2.96-132.7.2.i386.rpm
compat-libstdc++-33-3.2.3-47.3.i386.rpm
compat-libstdc++-296-2.96-132.7.2.i386.rpm
compat-openldap-2.1.30-6.4E.i386.rpm
 
Old 11-11-2006, 09:55 PM   #3
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
you might have to compile the older compiler yourself
just make sure you put it in /opt/gcc2.95 or something
DO NOT overwrite your systems compiler with the old one.
 
Old 11-12-2006, 11:53 PM   #4
Priyakrishnan
LQ Newbie
 
Registered: Nov 2006
Location: India
Distribution: Redhat 3.2.2-5
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks but need more help

Thankyou Lenard and StudioJ for your inputs.
Lenard, you are right, it is RH 9.0.

I have to install gcc 2.95 bcos my ns2 simulator code needs gcc 2.95 compiler. I have the rpm for gcc 2.95 and when I install using rpm command I get messages conflicting with gcc 3.2.2 from /usr/local, etc. SO I firt need to move gcc 2.95 to a seperate folder and install there so there is no conflic or vice versa (with gcc 3.2.2).

Please Help!

Thanks in advance
 
Old 11-13-2006, 12:07 AM   #5
rafieenezhad
LQ Newbie
 
Registered: Oct 2006
Posts: 8

Rep: Reputation: 0
gcc 2.95.3 for RedHat 9.0

Hi everyone
I have same problem for my thesis.
Please help me to use gcc 2.95.3 to compile ns codes.
Thanks in advance
Rafieenezhad
 
Old 11-13-2006, 12:09 AM   #6
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
i don't use redhat but
don't think you can use the rpm.
like Leanard said if you just need runtime libraries
that is, you don't need to compile anything, but just run stuff already compiled with gcc2
install thoe compatability rpms he mentioned and it should work
 
Old 11-13-2006, 05:04 AM   #7
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Those compat lib rpms are for a supported version of RHEL4 the ones for RHL9 can be found at the Fedora Legacy site;http://www.fedoralegacy.org/download/

Here; http://download.fedoralegacy.org/redhat/9/os/i386/
 
Old 11-16-2006, 11:06 PM   #8
Priyakrishnan
LQ Newbie
 
Registered: Nov 2006
Location: India
Distribution: Redhat 3.2.2-5
Posts: 5

Original Poster
Rep: Reputation: 0
Thumbs up I finally installed gcc 2.95.3 on RH 9.0

I would like to share it with yo all,
Here is what I found
1. DO not use RPM. Dowload gcc 2.95.3 compiler source
2. INstall using
From the directory that has gcc 2.95.3 unzipped and untar'ed do the following:
./configure --prefix=/opt/gcc-2.95.3
make bootstrap
make install
3. Check your compiler version using gcc -v, you will be happy to see 2.95.3

If you want to see your previous gcc versions just type
rpm q gcc

To switch to other gcc you might have to set --prefix.

Thanks everyone for your help
 
Old 11-17-2006, 02:41 AM   #9
lbdgwgt
Member
 
Registered: Aug 2006
Distribution: Open Suse 10.1, Ubuntu (Feisty Fawn)
Posts: 87

Rep: Reputation: 15
Yes but i think in that way you should have problem later if you want to use your newer gcc version.

you can use crosstool from dan kegel:
http://www.kegel.com/crosstool/
it will install a new gcc (you can choose some version) with prefix name. Later just add the path of the new gcc to your PATH. so you basically will have 2 versions of gcc.
 
Old 11-20-2006, 05:20 AM   #10
Priyakrishnan
LQ Newbie
 
Registered: Nov 2006
Location: India
Distribution: Redhat 3.2.2-5
Posts: 5

Original Poster
Rep: Reputation: 0
gcc update

Yes, I do have both the versions of gcc right now.

Regards
Priya
 
Old 11-28-2006, 11:30 PM   #11
rafieenezhad
LQ Newbie
 
Registered: Oct 2006
Posts: 8

Rep: Reputation: 0
Thanks everyone
Dear Priyakrishnan
From where did you download gcc2.95.3compiler source?
please send me it's link.
Thanks a lot
Rafieenezhad
 
Old 12-04-2006, 02:18 AM   #12
Priyakrishnan
LQ Newbie
 
Registered: Nov 2006
Location: India
Distribution: Redhat 3.2.2-5
Posts: 5

Original Poster
Rep: Reputation: 0
Thumbs up Gcc source code link

Hi Rafieenezhad,
I think I downloaded from
http://gcc.gnu.org/gcc-2.95/index.html

Good luck
PriyaKirshnan
 
Old 12-07-2006, 11:00 AM   #13
rimaadel
LQ Newbie
 
Registered: Dec 2006
Posts: 1

Rep: Reputation: 0
HELLO Priyakrishnan,

I am trying to install gcc 2.95 compiler in RH 9.0 , I have followed the instruction you put earlier in the forum but when I enter the last instruction “make install” it shows that I have 1 Error, I think that the problem is with the /opt directory as it doesn’t give me the permeation to write in this directory! If you can help me with this matter I will be very grateful.


Thank you in advance
Rima
 
Old 02-28-2007, 08:09 AM   #14
rafieenezhad
LQ Newbie
 
Registered: Oct 2006
Posts: 8

Rep: Reputation: 0
Hi everyone
Dose anyone have "patch-tclcl-1.0b13" file?
I need it to install mns_v2.0 for ns-2.26.
Please help
Thanks
Rafieenezhad
 
  


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 gcc compiler Carunkumar Ubuntu 16 09-15-2006 04:05 AM
Installing another gcc compiler in mandrake 10.0 lbabey Linux - Software 8 03-31-2005 05:22 PM
Installing Gcc (it requires a compiler) funkatron Linux - Software 2 09-25-2004 10:38 AM
installing devel-packages and gcc-compiler supersucker Linux - Software 1 08-30-2004 10:18 PM
Installing a GCC-compiler Jeff_G_1974 Fedora 1 02-28-2004 03:36 PM


All times are GMT -5. The time now is 08:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration