[R] RE: new packages: geepack and KMsurv

Jari Oksanen jarioksa at sun3.oulu.fi
Tue Oct 8 09:27:45 CEST 2002


p.dalgaard at biostat.ku.dk said:
> Now the error message claims that the library is absent, so does the
> file actually exist? And did you install from RPM or from source

Both: After finding this problem with Martyn Plummer's RPM, I installed from 
the source (usual magic: ./configure && make). The problem pertains is the same.

duncan at research.bell-labs.com said:
> is the libR.so.  That means that at some stage you compiled R with the
> --enable-R-shlib flag and built libR.so.  Then, when you installed a
> new version of R, you did not use the --enable-R-shlib flag. So
> libR.so was not built. But when a package is installed and libR.so
> exists, that package is linked against the libR.so. So when that
> previously compiled package is loaded into the new R that has no
> libR.so, you get the error message you are seeing.

Now it looks that this is deeper in the configure scripts or in the way they 
work in RH7.3 (gcc 2.96, b***y b*****ds). The ./configure claims that R is not 
built as a shared library, but still dyn.load looks for libR.so. This is the output 
when I build from the source:

./configure info screen:

R is now configured for i686-pc-linux-gnu

  Source directory:          .
  Installation directory:    /usr/local

  C compiler:                gcc  -D__NO_MATH_INLINES -mieee-fp -g -O2
  C++ compiler:              g++  -mieee-fp -g -O2
  Fortran compiler:          g77  -mieee-fp -g -O2

  X11 support:               yes
  Gnome support:             no
  Tcl/Tk support:            yes
  Readline support:          yes

  R profiling support:       yes
  R as a shared library:     no

  Recommended packages:      yes

And this happens when I run the code I "make'd" (I guess gnu `make' is a weak verb
and has regular declension):

[jarioksa at pc112145 R-1.6.0]$ /tmp/R-1.6.0/bin/R

R : Copyright 2002, The R Development Core Team
Version 1.6.0  (2002-10-01)

[...snip...]

> library(akima) # Like it should be: not installed with this version
Error in library(akima) : There is no package called `akima'
> dyn.load("/usr/lib/R/library/akima/libs/akima.so")
Error in dyn.load(x, as.logical(local), as.logical(now)) : 
	unable to load shared library "/usr/lib/R/library/akima/libs/akima.so":
  libR.so: cannot open shared object file: No such file or directory

I am bushed.

Exactly the same thing happens with Martyn Plummer's rpm package.

cheers, jari oksanen
-- 
Jari Oksanen -- Dept Biology, Univ Oulu, 90014 Oulu, Finland
Ph. +358 8 5531526, cell +358 40 5136529, fax +358 8 5531061
email jari.oksanen at oulu.fi, homepage http://cc.oulu.fi/~jarioksa/




-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list