From edd at debian.org  Sat Aug 20 16:09:21 2005
From: edd at debian.org (Dirk Eddelbuettel)
Date: Sat, 20 Aug 2005 09:09:21 -0500
Subject: [Rd] Different gcc versions
In-Reply-To: <20050820115420.GA3706@stat.umu.se>
References: <20050820115420.GA3706@stat.umu.se>
Message-ID: <17159.14737.562207.948435@basebud.nulle.part>


G?ran,

On 20 August 2005 at 13:54, G?ran Brostr?m wrote:
| I have both gcc-3.4 and gcc-4.0(.1) installed on my system 
| (debian-amd64 unstable), with links /usr/bin/gcc, g77, etc. to
| the 3.4 versions. When I build R, the 3.4 version is picked up, 
| which is fine.
| 
| However, when I 'install.packages("xyz")', R uses gcc-4.0 and
| gfortran-4.0! Should I accept this or do something about it?
| And if so, what? Of course, removing all 4.0 versions would 
| help, but what if I don't want to do that?

There are several way about it. 

The first would be to actually use one of Debian's packages -- unstable
currently uses gcc 4.0.1 / g77 3.4.*. That seems to work well. You'd get the
same released version for amd64 as well. I'd do that.

The second would be to continue building on your own, but to make sure the
generated Makeconf (which the Debian package copies into /etc/R/) has the
right settings.

Hope this helps, Dirk

-- 
Statistics: The (futile) attempt to offer certainty about uncertainty.
         -- Roger Koenker, 'Dictionary of Received Ideas of Statistics'



[Rd] Different gcc versions
Dirk Eddelbuettel