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@lists.r-forge.r-project.org | https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel