[Rd] Problem with dyn.load in R 2.13.0

Simon Urbanek simon.urbanek at r-project.org
Wed Apr 13 22:45:42 CEST 2011


We have no details, but my wild guess would be that you did not re-build the package for 2.13.0 and you have static libR in 2.13.0 yet dynamic in 2.12.2.

Cheers,
Simon


On Apr 13, 2011, at 2:00 PM, Terry Therneau wrote:

> I have a test directory for the survival suite, and dyn.load has ceased
> to work in it.  Below shows the log:
> 
> tmt1075% R --vanilla
> 
> R version 2.12.2 (2011-02-25)
> Copyright (C) 2011 The R Foundation for Statistical Computing
> ISBN 3-900051-07-0
> Platform: x86_64-unknown-linux-gnu (64-bit)
> 
> R is free software and comes with ABSOLUTELY NO WARRANTY.
> You are welcome to redistribute it under certain conditions.
> Type 'license()' or 'licence()' for distribution details.
> 
>  Natural language support but running in an English locale
> 
> R is a collaborative project with many contributors.
> Type 'contributors()' for more information and
> 'citation()' on how to cite R or R packages in publications.
> 
> Type 'demo()' for some demos, 'help()' for on-line help, or
> 'help.start()' for an HTML browser interface to help.
> Type 'q()' to quit R.
> 
>> dyn.load('survival.so')
>> q()
> 
> tmt1076% R13 --vanilla
> 
> R version 2.13.0 RC (2011-04-11 r55409)
> Copyright (C) 2011 The R Foundation for Statistical Computing
> ISBN 3-900051-07-0
> Platform: x86_64-unknown-linux-gnu (64-bit)
> 
> R is free software and comes with ABSOLUTELY NO WARRANTY.
> You are welcome to redistribute it under certain conditions.
> Type 'license()' or 'licence()' for distribution details.
> 
>  Natural language support but running in an English locale
> 
> R is a collaborative project with many contributors.
> Type 'contributors()' for more information and
> 'citation()' on how to cite R or R packages in publications.
> 
> Type 'demo()' for some demos, 'help()' for on-line help, or
> 'help.start()' for an HTML browser interface to help.
> Type 'q()' to quit R.
> 
>> dyn.load('survival.so')
> Error in dyn.load("survival.so") : 
>  unable to load shared object
> '/people/biostat2/therneau/research/surv/Rtest/survival.so':
>  libR.so: cannot open shared object file: No such file or directory
>> q()
> 
> --------------------------
> 
> Is the issue that the .so file must have been created with the R2.13
> script?  That's not what the error message says, however.  It almost
> looks like it is ignoring my first argument and looking instead for
> "libR".
> 
> Terry Therneau
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 
> 



More information about the R-devel mailing list