LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-20-2004, 10:52 PM   #1
karfei00
Member
 
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-20-2004, 11:36 PM   #2
indeterminate
Member
 
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, 12:48 AM   #3
Kroenecker
Member
 
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245

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

Or

http://lfs.oregonstate.edu/lfs/view/.../gcc-2953.html

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.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:16 AM.

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