Re: [R] RPM-style install (SLED 10.1)

From: Horace Tso <Horace.Tso_at_pgn.com>
Date: Mon, 12 May 2008 13:06:10 -0700

Stas, this doesn't solve your problem but may shed some light on what might have gone wrong. Just recently I installed R 2.7.0 under openSuse 10.3 in a brand new 64-bit Lenovo ThinkPad. The first install failed because of a dependency error just like yours. It complained it couldn't find BLAS and libgfortran. I then got on the varous repositories and installed a couple flavours (don't remember how many) of fortran and finally it went through. Right now, in my /usr/lib64, i have libgfortran.so.2.0.0.

HTH. Horace

-----Original Message-----

From: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org] On Behalf Of Stas Kolenikov Sent: Monday, May 12, 2008 7:33 AM
To: r-help_at_r-project.org
Subject: [R] RPM-style install (SLED 10.1)

I am trying to install R on a SLED 10.1 machine. R-base-2.7.0-7.1-i586.rpm fails with

stas_at_linux-6b8s:~/RPMs> rpm -Uvh R-base-2.7.0-7.1.i586.rpm warning: R-base-2.7.0-7.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 14ec5930
error: Failed dependencies:

        libgfortran.so.1 is needed by R-base-2.7.0-7.1.i586

I tried to trick it into believing there's the library by setting up the link:

stas_at_linux-6b8s:~/RPMs> ls -l /usr/lib/libgf* lrwxrwxrwx 1 root root 29 2008-05-08 17:45 /usr/lib/libgfortran.so.1 -> /usr/lib/libgfortran.so.3.0.0 lrwxrwxrwx 1 root root 20 2008-05-08 17:37 /usr/lib/libgfortran.so.3 -> libgfortran.so.3.0.0
-rwxr-xr-x 1 root root 2251139 2008-05-01 09:43 /usr/lib/libgfortran.so.3.0.0

but that did not work, either. I went on and installed GCC's gfortran, but it did not provide libgfortran.so.1 either:

stas_at_linux-6b8s:~/RPMs> ls -l /usr/irun/lib/libgf*
-rw-r--r-- 1 1005 1011 4330512 2008-03-02 02:29 /usr/irun/lib/libgfortran.a
-rwxr-xr-x 1 1005 1011 1009 2008-03-02 02:29 /usr/irun/lib/libgfortran.la
-rwxr-xr-x 1 1005 1011 2509309 2008-03-02 02:29 /usr/irun/lib/libgfortran.so
-rwxr-xr-x 1 1005 1011 2509309 2008-03-02 02:29 /usr/irun/lib/libgfortran.so.3
-rwxr-xr-x 1 1005 1011 2509309 2008-03-02 02:29
/usr/irun/lib/libgfortran.so.3.0.0

Any reason R wants that package instead of the newer one? Of course rpm --nodeps was an option, but then it fails to load r-stats with the same message about the missing library:

Error in dyn.load(file, DLLpath = DLLpath, ...) :   unable to load shared library '/usr/lib/R/library/stats/libs/stats.so':   /usr/lib/R/library/stats/libs/stats.so: undefined symbol: _gfortran_pow_r8_i4 During startup - Warning message:
package stats in options("defaultPackages") was not found

I am stuck... I am trying to compile R from 2.6.2 sources in the meantime, but that's painful for a Linux newbie like me on a brand-new computer that does not necessarily have all the packages. I almost want to switch to Ubuntu as R installation back there was a single click :))

--

Stas Kolenikov, also found at http://stas.kolenikov.name Small print: Please do not reply to my Gmail address as I don't check it regularly.



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 12 May 2008 - 20:10:14 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 13 May 2008 - 00:30:38 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive