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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-26-2009, 09:59 AM
|
#1
|
LQ Newbie
Registered: Nov 2008
Posts: 6
Rep:
|
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!
|
|
|
03-26-2009, 10:08 AM
|
#2
|
Member
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184
Rep:
|
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?
|
|
|
03-26-2009, 10:15 AM
|
#3
|
LQ Newbie
Registered: Nov 2008
Posts: 6
Original Poster
Rep:
|
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" 
|
|
|
03-26-2009, 12:36 PM
|
#4
|
Member
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184
Rep:
|
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.
|
|
|
03-26-2009, 01:26 PM
|
#6
|
LQ Newbie
Registered: Nov 2008
Posts: 6
Original Poster
Rep:
|
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!
|
|
|
03-26-2009, 01:26 PM
|
#7
|
LQ Newbie
Registered: Nov 2008
Posts: 6
Original Poster
Rep:
|
I forgot to say i am using FC8! 
|
|
|
03-27-2009, 02:30 AM
|
#8
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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.
.....
|
|
|
03-27-2009, 09:02 AM
|
#9
|
LQ Newbie
Registered: Nov 2008
Posts: 6
Original Poster
Rep:
|
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!
|
|
|
03-27-2009, 10:17 AM
|
#10
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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.
|
|
|
All times are GMT -5. The time now is 05:48 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|