LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-26-2009, 09:59 AM   #1
kitty07
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Rep: Reputation: 0
Unhappy Help - Need to instal gcc 2.95 on Fedora


Hello everyone,

I have to work on some simulations with ns 2.26 which needs gcc 2.95 installed in order to be compiled.

Currently i have installed gcc 4.1 and ried to instal also 2.95 fllowing some instructions i found in Internet.

http://www.mjmwired.net/resources/mjm-fedora-gcc.html

When trying to compile the gcc i get this errors:

make[1]:***[libgcc2.a] Error 1
make:***[all-gcc] Error 2

Can someone help me pass this errors...i am out of time and i would really need some help!

thnx. in advance!
 
Old 03-26-2009, 10:08 AM   #2
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Rep: Reputation: 42
First thing I'd try before trying to install an ancient GCC would be installed the latest version of ns, which is 2.33, from April 2008.
One should expect it to be recent enough to compile with a recent GCC.

Will download and test.
Also, as I'm running an upgrade I cannot check the Fedora-repo. But did you have a look if it's maybe available there?
 
Old 03-26-2009, 10:15 AM   #3
kitty07
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Original Poster
Rep: Reputation: 0
thnx for the reply!

I have to use ns 2.26 because i need the bgp++ module which works only with this version...which by the way seems to need this older version of gcc.
What do you mean with Fedora-report?! The report after the installation???
Sorry for the ignorance but i am not a "Linux Expert"
 
Old 03-26-2009, 12:36 PM   #4
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Rep: Reputation: 42
With Fedora-repo I mean the software-repository from which you get additional software and updates.
But I checked in the meantime and it's not there.
 
Old 03-26-2009, 12:48 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
I have a working gcc-2.95 on a couple of Fedora's.
Which version of Fedora is used ? ?

The gcc package
http://packages.debian.org/etch/gcc-2.95
i386
http://packages.debian.org/etch/i386/gcc-2.95/download
Must be converted to "rpm" with the command
# alien -r <package>

Same goes for the 'cpp' part of gcc-2.95 ( also required )
http://packages.debian.org/etch/cpp-2.95
http://packages.debian.org/etch/i386/cpp-2.95/download
.....
You may need the g++-2.95 package too. ( c++ compiler ).
....
Did you try with the 'compat-gcc-34 and 'compat-gcc-34-c++' ?
> > # yum install compat-.........
.....

Last edited by knudfl; 03-26-2009 at 12:57 PM.
 
Old 03-26-2009, 01:26 PM   #6
kitty07
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Thnx Reptiler!

Knudfl thnx for the links.
I tried installing gcc-core-2.95 which is suposed to have g++2.95 included.
I will donwload also cpp 2.95 and see if the errors wil be solved!
thnx again! I'll let u know!
 
Old 03-26-2009, 01:26 PM   #7
kitty07
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Original Poster
Rep: Reputation: 0
I forgot to say i am using FC8!
 
Old 03-27-2009, 02:30 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
So what is 'gcc-core-2.95' ? ?

The only thing I know by that name is the old
source code, which you will not be able to use
on Fedora 8, AFAIK.
.....
 
Old 03-27-2009, 09:02 AM   #9
kitty07
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Ok, i got a suggestion that i should install gcc 3.3 before and than compile gcc 2.95 with gcc3.3.

I did install gcc 3.3 but when i run: gcc -v on the terminal i only get: gcc version 4.1.2 20070925.
No gcc 3.3

I installed it in /opt/gcc336/bin and also aded the PATH=$PATH:/opt/gcc336/bin.

I don't know what else can i do!
 
Old 03-27-2009, 10:17 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
1) It is not easy to build gcc-2.95 .

2) 'gcc -v' only concerns /usr/bin/gcc, which is gcc-4.1.2 .
2a) The command '/opt/gcc336/bin/gcc -v' will write version,
etc. for that.

3) If you want gcc-3.x : Use the compat-gcc-34 packages,
I mentioned in post # 5.
And using it, example : './configure CC=gcc34 CXX=g++34
... and 'make CC=gcc34' etc.
Probably works better than gcc-3.3.6,
if you compiled it yourself.
.....

Last edited by knudfl; 03-28-2009 at 01:09 PM.
 
  


Reply



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
Fedora 9 instal libXext.so.6 cfo General 0 06-16-2008 11:20 AM
how do you instal fedora? need help !!! please help!! gundumfx Linux - Desktop 3 07-11-2007 12:05 AM
Instal Ricoh 4-in-1 pcmcia card reader under Fedora snablen Linux - Hardware 0 09-11-2005 04:21 AM
Want to delete XP and instal Fedora !!! jwketner Linux - Laptop and Netbook 2 02-16-2005 04:12 PM
Fedora (yarrow) Instal problems on a Proliant 5000 Yacuzaboss Fedora 0 08-07-2004 11:38 AM

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

All times are GMT -5. The time now is 01:02 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