[Rcpp-devel] Problem loading a binary package which links dynamically with Rcpp
Fabien Ors
fabien.ors at mines-paristech.fr
Tue Jan 29 09:11:27 CET 2013
Hi Dirk,
Thank you for your answer. My package is called RGeoS (case sensitive).
Maybe could you try it downloading it from our website ?
http://rgeos.free.fr/forum/viewtopic.php?f=2&t=48
I can reproduce the problem on Ubuntu 12 and Fedora 17 when I install
Rcpp and RGeoS without root rights (in a directory of mine like
/home/fors/R-Packs for instance)
What should contain ld.so.conf and how to keep it sync, please ?
Thanks in advance.
Best regards,
Fabien Ors,
Mines-ParisTech/Géosciences/Géostatistique,
Tel : (33) +1 64 69 47 79
Le 29/01/2013 00:01, Dirk Eddelbuettel a écrit :
> Salut Fabien,
>
> This is not a reproducible report ...
>
> On 28 January 2013 at 10:19, Fabien Ors wrote:
> | Hi,
> |
> | I develop a binary R package (let's call it MyPack) which is not on the
> | CRAN and which depends from Rcpp (0.10.2).
> | This package is built in-house under linux using the "R CMD INSTALL
> | --build" and a "Makevars" file containing :
> |
> | PKG_CPPFLAGS = -I"$(R_HOME)/include" -I"$(R_HOME)/library/Rcpp/include"
> | PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"`
> |
> | The problem is that I cannot load my package on another linux computer:
> |
> | > library(MyPack)
> | Loading required package: Rcpp
> | Error in dyn.load(file, DLLpath = DLLpath, ...):
> | unable to load shared object '/Path/To/R_Packs/MyPack/libs/MyPack.so':
> | libRcpp.so: cannot open shared object file: No such file or directory
> | Error: package/namespace load failed for ‘MyPack’
> |
> | Both Rcpp and MyPack have been installed using:
> | R CMD INSTALL Rcpp_0.10.2.tar.gz -l /Path/To/R_Packs/
> | R CMD INSTALL MyPack_1.0.0.tar.gz -l /Path/To/R_Packs/
> |
> | And the path to R_Packs have been added to R_LIBS environment variable, so:
> | > .libPaths()
> | [1] "/Path/To/R_Packs" "/usr/local/lib64/R/library"
> |
> | If I install both packages as root (inside /usr/local/lib64/R/library/),
> | there is no problem.
>
> That would indicate there is no problem per se with your or our code, but
> rather with the setup of your computer. Maybe /etc/ld.so.conf is out of sync
> with where you keep dynamic libraries -- hard to say without anything
> reproducible.
>
> Dirk
>
> | Any help would be greatly appreciated.
> |
> | Thanks.
> | Fabien
> | _______________________________________________
> | Rcpp-devel mailing list
> | Rcpp-devel at lists.r-forge.r-project.org
> | https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
>
More information about the Rcpp-devel
mailing list