On 1 May 2015 at 19:03, Marie-Pierre ETIENNE wrote:
| So I tried to apply your suggestion and I still have the same error
|  
| Error in dyn.load(file, DLLpath = DLLpath, ...) :  unable to load shared 
object 
'/home/metienne/R/x86_64-pc-linux-gnu-library/3.1/testCMaes/libs/testCMaes.so': 
libcmaes.so.0: cannot open shared object file: No such file or directory Error: 
loading failed 
| 
| I'm absolutely not confortable with this, so I wonder if libcmaes.so.0 should
|  be copied in the
| 
| testCMaes package installation directory  or should testCMaes.so access to it 
in the standard directory ?

It depends.  

In the simplest case, you just have /usr/local/lib/libcmaes.so and after
running 'sudo ldconfig' (to update the ldconf cache) you should see it when
you do 'ldconfig -p | grep cmaes'.

When libraries are installed by the distribution, you often get something
like this:

edd@max:~$ ls -l /usr/lib/libgsl.so*
lrwxrwxrwx 1 root root      16 Jul 10  2014 /usr/lib/libgsl.so -> 
libgsl.so.0.17.0
lrwxrwxrwx 1 root root      16 Jul 10  2014 /usr/lib/libgsl.so.0 -> 
libgsl.so.0.17.0
-rw-r--r-- 1 root root 2221616 Jul 10  2014 /usr/lib/libgsl.so.0.17.0 
edd@max:~$ 

So it depends on where you got libcmaes from, and how you installed it.

None of this has anything to do with Rcpp. You are simply trying to figire
out how to work with a local library. 

And you will have the same issue in 5-line C program against the cmaes
library.  So I would suggest you seek some help from a more experienced
programmer around you at Agro Paris, and come back when you can build and run
a simple C program/

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org
_______________________________________________
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

Reply via email to