LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-14-2010, 06:33 AM   #1
maunik
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Rep: Reputation: 0
how i install older version of gcc 2.95.3 in fedora core 8 or fedora core 12 ?


i download the rpm package of gcc ...
 
Old 03-14-2010, 07:14 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,286

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
gcc-2.95 .. .. gcc-2.96

No, sorry, that's not possible. gcc may work, g++ will not.
And it is not possible to build it from source either. AFAIK.

The perfect solution is to install CentOS 3.9 .
gcc-c++-3.2.3 can compile ns-2.26 .
compat-gcc-7.3-2.96 can compile ns-2.1b8
The resultant binaries can be used on any Fedora.

If this is about ns-2.27, I guess the "compat-g++-3.3"
from Debian / Ubuntu can be used in Fedora.
Please ask, if you need anything for ns-allinone-2.27 .
.....
 
Old 03-14-2010, 04:31 PM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 13,531

Rep: Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807
rewrite the programs that are very old ( from 1999 to 2001) and wrote for gcc 2 ( very very very old programs)
 
Old 03-14-2010, 06:58 PM   #4
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
don't take rpm, take tar.gz files.
If you want to compile a project with your own make file, use the line for the gcc = /opt/gcc33/bin/gcc or g++

you must keep existing version of gcc so that other application should work.

whenever you want to run your project, then manually load environment variables for them.
 
Old 03-15-2010, 02:59 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,286

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
@ raju.mopidevi : ""Don't use rpm"" : Why do you say that, when
you know you have "all rpm" for Suse 11.2 meant for /usr/ :
gcc33-3.3.3 , gcc41-4.1.2 , gcc43-4.3.4 , gcc44-4.4.1 , etc. etc.

.....
 
Old 03-15-2010, 03:13 AM   #6
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
@knudfl ; Actually my point was to intall with different name, put a different path-name.
not as a regular path name gcc, use another path name like gcc29 ..etc..

because if we use the gcc, then this may effect the latest version of gcc path. This leads to problem for the applications which relay on latest gcc.

I followed this way to install old gcc to run project.
* extracted gcc with a different name as gcc33 in the same directory where latest gcc lies.
* I gave a name gcc33 to folder. and extracted their gcc3.3 files
* Now whenever i need to run project , i made a change as CC=gcc33 ( Actually CC=GCC )
 
Old 03-15-2010, 03:27 AM   #7
John VV
Guru
 
Registered: Aug 2005
Posts: 13,531

Rep: Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807
what i think is that "raju.mopidevi" meant that it is possible to install
MAYBE ???? but installing something SO OLD will be VERY VERY hard to do .
it must be put in it's own folder OUTSIDE OF THE SYSTEM PATH
then pass it's location to the configure script and to the build program.


However it will be MUCH easier to rewrite the old software ( from 1999- 2001) to comply with gcc 4.4 that is installed on fedora 12
 
Old 03-15-2010, 04:01 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,286

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
@ John VV : My point is just, why reinvent the wheel, when you
have packages. All modern Linux have 2 .. 4 compilers, all meant
to be installed at the same time.
The Suse example : /usr/bin/gcc-3.3 /usr/bin/g++-3.3
/usr/bin/gcc-4.1 /usr/bin/g++-4.1 /usr/bin/gcc-4.3 /usr/bin/g++-4.3
/usr/bin/gcc (4.4.1) /usr/bin/g++ (4.4.1)

Rewriting the code : I doubt anybody have the time ( 2 years ? )
to rewrite the 2000 files.

About the @raju.mopidevi suggestion to compile gcc-2.95.x :
You will need a "10" year old Linux to do that, and only
the gcc executable will work, g++-2.95 cannot be used on
a newer Linux. The latest to use it is Debian Etch.
.....
 
Old 03-15-2010, 09:35 AM   #9
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
no need of 10 year old linux. I had installed gcc 3.3 with existing gcc 4.4
I was able to run my project without going back to 10 years old linux system.
 
Old 12-21-2010, 06:05 AM   #10
ashok.alluri8011
LQ Newbie
 
Registered: Nov 2010
Posts: 8

Rep: Reputation: 0
how to install gcc3.2.3 anad where to find s/w in fedora linux 12 ,

I Already installed gcc-g++34, and gcc g++ 4.4.4

My system is Linux localhost.localdomain 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 i686 i386 GNU/Linux
Purpose of giving above line is to tell u that i686 compatible version i need

And i want know which compiler version is suitable for ns-2.26?? ...and plz post link here

When i installed ns2-allinone-2.26 with gcc34 and gcc4.4.4 im getting errors like



/usr/lib/gcc/i686-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/vector.tcc: In member function `void std::vector<_Tp, _Alloc>::_M_fill_insert(__gnu_cxx::__normal_iterator<typename _Alloc:ointer, std::vector<_Tp, _Alloc> >, size_t, const _Tp&)':
/usr/lib/gcc/i686-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/vector.tcc:307: error: expected unqualified-id before '(' token
/usr/lib/gcc/i686-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/vector.tcc: In member function `void std::vector<_Tp, _Alloc>::_M_range_insert(__gnu_cxx::__normal_iterator<typename _Alloc:ointer, std::vector<_Tp, _Alloc> >, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag)':
/usr/lib/gcc/i686-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/vector.tcc:384: error: expected unqualified-id before '(' token
make: *** [diffusion3/ns/difftimer.o] Error 1
Ns make failed!



plz help me...


Thanx in advance
 
Old 12-24-2010, 06:15 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,286

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
Post # 10, @ ashok.alluri8011.

'ns-allinone-2.26' compiles with the gcc / gcc-c++ version 3.3.3 from Suse.

Already answered here ( " @ ashok.alluri8011 ns-2.26 " )
http://www.linuxquestions.org/questi...-2-3-a-851561/

..
 
  


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
How do I install Fedora Core 7 (Live Version) to my hard drive kuwaitikid Linux - Software 1 05-02-2008 10:17 AM
Which version and how to install Fedora Core 6 on fairly new Dell laptop? BootLaptop Linux - Laptop and Netbook 1 05-28-2007 03:48 PM
How to install gcc 3.3.3 on fedora core 1 ravi_yaddula Linux - Software 2 10-10-2006 10:40 AM
Setup Fedora core 3 & Redhat 7.2 software development environment under Fedora core 5 powah Fedora 1 06-16-2006 11:25 AM
gcc-3.3.3 install trouble for fedora core 1 linusbox Linux - Software 1 03-25-2004 05:42 PM


All times are GMT -5. The time now is 09:45 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration