Skip to content

R 1.4 on Mandrake Linux 8.1

4 messages · Frank E Harrell Jr, Peter Dalgaard, mikalzet@libero.it

#
I installed the new rpm from CRAN for R 1.4 for Mandrake Linux 8.1, after getting blas and libgcc from rpmfind.net.  When I do update.packages() the system goes to update grid, lattice, and mgcv.  I get compile errors for two of them.  Apparently R is looking for gcc 3.0.1 or later but 8.1 uses 2.9x which is required for other Mandrake applications (i.e., I get a dependency error when trying to install the latest gcc*.rpm from rpmfind.net; there are no Mandrake 8.1 updates yet for gcc).  I would appreciate a pointer.  Thanks -Frank
#
Frank E Harrell Jr <fharrell at virginia.edu> writes:
Um, what makes you think it wants 3.0.1? Nothing in R itself requires
that, but the rpm may have been compiled with 3.0.1 and that might
carry into the package-building. AFAIR, RedHat 7.2 has both a gcc and
a gcc3 rpm which can be installed in parallel, and Mandrake usually
follows RedHat..
#
On Sun, 23 Dec 2001, Frank E Harrell Jr wrote:

            
Why did you do that ?
gcc-3.0.1 is included in standard Mandrake 8.1; you should have it already
installed or on your CD's, as I have.

Else download:

lftp ftp.edisontel.it/pub/Mandrake_Mirror/Mandrake/8.1/i586/Mandrake
/RPMS/
get gcc3.0-3.0.1-1md.i586.rpm

On my system (with no extraneous rpm's added) it is under
/usr/bin/gcc-3.0.1

There is an /etc/alternatives directory in which a link is found between
gcc and the gcc you wish to use, you can change that if you like, or you
can simply do

export CC="gcc-3.0.1"
export GCC="gcc-3.0.1"

in your shell before compiling.

When I do update.packages() the only package it updates is mgcv, which it
then proceeds to compile and install with gcc-3.0.1 (even though my
'default' gcc in the alternatives directory is 2.96) (it seemed a clever
idea at the time to compile with gcc 3.0.1 rather than an earlier version
- not so sure it was now).

Guess you just have to install the

gcc3.0-3.0.1-1mdk.i586.rpm

RPM package from mandrake (your old gcc won't be touched) or else
recompile the RPM from source with your gcc-2.96.
#
On Sun, 23 Dec 2001, Frank E Harrell Jr wrote:

            
Please note that many libs in Mandrake have slightly different names to
allow for backwards compatibility I suppose. On my system

rpm -qa libgc*

gives:

libgcj-devel-2.96-4mdk
libgcj-2.96-4mdk
libgcc3.0-3.0.1-1mdk

locate blas gives me

/usr/lib/libblas.so.3.0

and

rpm -qf /usr/lib/libblas.so.3.0

gives me

liblapack3-3.0-3mdk.

I suggest you install these and uninstall the extraneous packages from RPM
find. I have never trusted updates myself; I keep my /home /usr/local and
/opt partitions and do a clean install after having saved my /etc
directory too.