You are not logged in.

#1 2011-01-19 23:45:53

crabmarkjellozest
Member
Registered: 2010-07-09
Posts: 20

[solved] Easy way of installing multiple version of GCC?

Hi,
I have been away from Arch for some time.  I am interested in stepping away from Gentoo, which I use currently, but there is one feature that I've never seen offered elsewhere that I don't want to leave: the ability to seamlessly install multiple version of many programs side-by-side, most notably GCC/G++. 

I typically try to use the most recent compiler for my own software, but am working on several long-term projects which require G++ 4.1.* to build.  In Gentoo I am able to install multiple version of GCC into "slots" and a utility called gcc-config lets me switch between them quickly and easily.

Is Arch capable of doing something like this?  It doesn't need to be as fancy, I would be content with just differently named executables, but I don't see much discussion about this.  I am not particularly interested in trying to learn how to write and maintain a PKGBUILD to do this myself; I am not familiar with the nuances of building GCC from source by hand and don't really have the time to learn right now.

*Note: I am not interested in discussing the merits of Gentoo/Arch, I am just describing it to provide a more clear example of the functionality I'm looking for.

Last edited by crabmarkjellozest (2011-01-21 02:56:10)

Offline

#2 2011-01-19 23:51:07

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,360

Re: [solved] Easy way of installing multiple version of GCC?


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2011-01-20 00:12:58

crabmarkjellozest
Member
Registered: 2010-07-09
Posts: 20

Re: [solved] Easy way of installing multiple version of GCC?

Thanks, I actually searched the AUR but didn't realize that the GCC package automatically included the C++ tools as well.  I'll give it a go.

Offline

#4 2011-01-20 06:38:55

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,360

Re: [solved] Easy way of installing multiple version of GCC?

You're welcome. Please mark [solved].


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#5 2011-01-20 14:58:41

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [solved] Easy way of installing multiple version of GCC?

Even better than installing an old gcc, is to update the code instead. Usually the changes needed are trivial.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#6 2011-01-21 02:58:36

crabmarkjellozest
Member
Registered: 2010-07-09
Posts: 20

Re: [solved] Easy way of installing multiple version of GCC?

Marking it solved, although I have still been unable to build gcc41 from the AUR.  I will try to resolve that problem elsewhere.

Mr.Elendig wrote:

Even better than installing an old gcc, is to update the code instead. Usually the changes needed are trivial.

I will be looking into this eventually, but am just short of time lately.  Unfortunately it's not as trivial as code completely failing to compile.

Offline

Board footer

Powered by FluxBB