Re: [R] R and external C library " cannot open shared object file" while LD_LIBRARY_PATH is set

2014-07-28 Thread Pierre Lindenbaum
Thanks but that doesn't work: R cannot load a simple external library even if the full path to the directory is specified in the LD_LIBRARY_PATH. I posted a minimal example on gist.github: https://gist.github.com/lindenb/7cd766cbb37de01f6cce The simple C file is compiled but I'm not able to l

[R] R and external C library " cannot open shared object file" while LD_LIBRARY_PATH is set

2014-07-26 Thread Pierre Lindenbaum
( cross-posted on SO: http://stackoverflow.com/questions/24955829/ ) I'm building a C extension for R, this library also uses the HDF5 library. I compiled a dynamic library (gcc flags: -fPIC -shared -Wl,-soname,libmy.so -o ../lib/libmy.so in a 'lib' directory: $ file /path/to/my/lib/libmy.so