You are not logged in.

#1 2010-10-22 14:36:56

Jacek Poplawski
Member
From: Poland
Registered: 2006-01-10
Posts: 736
Website

different version of gcc

What's best way of installing other version of gcc compiler on my Arch?
(I don't mean compiling it manually from source)
I use 4.5.1 but during development I sometimes need older version to verify something, I found only gcc34 in AUR, but what could I do if I need 4.x.y?
Can I reuse old Arch package somehow and install it together with current 4.5.1?

Offline

#2 2010-10-22 15:55:36

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,652

Re: different version of gcc

I guess there is always the nuclear option:

Install and update abs,
Copy /var/abs/core/gcc to a working directory
modify PKGBUILD as appropriate.
pacman -U the resultant packages.

Do your development

Put back the current gcc with pacman -S


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2010-10-22 23:00:43

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: different version of gcc

Not a good idea...  You will loose symbols only in the current gcc and some of your software will stop working.

There are plenty of gcc-4.x PKGBUILDs in the AUR.  I maintain a gcc-snapshot one.  They show how to install multiple compiler version side by side.

Offline

Board footer

Powered by FluxBB