gianluca.mastrantonio at yahoo.it
2013-Sep-03 20:48 UTC
[Rd] libR.so: cannot open shared object file
Hi all I have a R code that incorporates a C++ programm. I compiled the C++ code with the following: R CMD SHLIB Model.cpp -Wall funzioni.cpp it seems to work fine but when i run the R code i get this error message Error in dyn.load(paste(dir_func, "Model.so", sep = "")) : unable to load shared object '/lustre/work/uuu/RCpp/Model.so': libR.so: cannot open shared object file: No such file or directory I don't know how to fix it. The code is running on a cluster. Thanks.
On 3 September 2013 at 22:48, gianluca.mastrantonio at yahoo.it wrote: | Hi all | | I have a R code that incorporates a C++ programm. I compiled the C++ | code with the following: | | R CMD SHLIB Model.cpp -Wall funzioni.cpp | | it seems to work fine but when i run the R code i get this error message | | Error in dyn.load(paste(dir_func, "Model.so", sep = "")) : | unable to load shared object '/lustre/work/uuu/RCpp/Model.so': | libR.so: cannot open shared object file: No such file or directory | | I don't know how to fix it. | The code is running on a cluster. Qualified guess: you ran R CMD SHLIB on the _central / master_ node, but not the _compute_ nodes. They never got the object file. One more rigorous approach would be to wrap your function up in a package, and have each compute node load the package. Hope this helps, Dirk -- Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
Apparently Analagous Threads
- A function that can modify an object? Or at least shows principles how to modify an object?
- Order of getpwnam call in Get_Pwnam_internals.
- Order of getpwnam call in Get_Pwnam_internals.
- Order of getpwnam call in Get_Pwnam_internals.
- return object from loop inside a function