[R] RPM-style install (SLED 10.1)

Stas Kolenikov skolenik at gmail.com
Mon May 12 16:33:08 CEST 2008


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.



More information about the R-help mailing list