Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-20-2004, 11:52 PM   #1
Registered: May 2004
Posts: 54

Rep: Reputation: 15
how to down-grade from gcc3.2.2 to gcc2.95?

i was planning to cross compile using qtopia, unfortunately it only supports gcc 2.95, so i have to install gcc 2.95, my question is once i have installed the gcc2.95 , what will happen to my current gcc 3.22 ? could the paths be messed up? need detail steps on it , thank you
Old 06-21-2004, 12:36 AM   #2
Registered: Oct 2003
Location: Virginia, US
Distribution: Debian, Ubuntu, Knoppix.
Posts: 76

Rep: Reputation: 17
Um yeah it could mess stuff up. Depends on how you install it. If you install it from a package of some kind, it'll probably overwrite the newer one. Well, you'd have to force it, but it will overwrite it.

If you compile gcc from source (heh, takes a little while), you could just not 'make install' when you're done, and probably just run gcc 2.95 from its build directory whenever you need it. Of course, I don't know anything about gcc and its dependencies, so consider a second opinion.
Old 06-21-2004, 01:48 AM   #3
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245

Rep: Reputation: 30
I would recommend googling for LFS (Linux from Scratch).


As the above link shows, the best bet is to compile from source. Then you can specify an install prefix when you run the configure command. Do you follow? You will need to be careful about what you affix to the ./configure command. You can run ./configure --help to get a list of options.

For instance to have all packages installed under a certain prefix run

./configure --prefix=/opt

Which will then, when you run make install, put everything under the /opt directory. This effectively separates gcc 2.95 from gcc 3.3.

Follow the boxed link at the above link to get details about making sure that c++ gets installed too.

Hope that helps.


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
build grade from source @ngelot Linux - Software 2 11-26-2005 05:01 AM
has any one upgraded from gcc3.3.4 to gcc3.4.3? mojarron Slackware 2 03-20-2005 11:44 AM
Installation too difficult(Gcc2.95) akihandyman Linux - Newbie 0 12-25-2003 08:34 AM
gcc3 and gcc2 sakeeb Linux - Software 5 06-09-2002 05:41 PM
Can I install both gcc2.96 and gcc3?.. kato678 Linux - Software 4 02-26-2002 07:07 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration