Cannot load specific version for system shared library (hdf5)

Hi all,

I am trying to install the hdf5r library via:
install.packages("hdf5r")

And i get this error:

configure: error: The version of hdf5 installed on your system is not sufficient. Please ensure that at least version 1.8.13 is installed
ERROR: configuration failed for package ‘hdf5r’
* removing ‘/home/r511a/R/x86_64-pc-linux-gnu-library/3.4/hdf5r’

The thing is that the server has a newer version install which i can load by doing from a terminal:
module load hdf5/1.8.18

Somehow I cannot tell RStudio server to lead this new version instead of the older one that is also installed in the system.

If I do: module show hdf5/1.8.18 this is where the library is located

-------------------------------------------------------------------
/software/.modules/sw/hdf5/1.8.18:

module-whatis    hdf5/1.8.18 - sets the environment for HDF5 1.8.18
prepend-path     PATH /software/hdf5/1.8.18/bin
prepend-path     LD_LIBRARY_PATH /software/hdf5/1.8.18/lib
-------------------------------------------------------------------

I tried to include those paths using the Sys.setenv() function from RStdio but it also does not work.

Any suggestion? idea?

Thanks in advance

You may want to use this pattern to add the necessary value to the LD_LIBRARY_PATH for RStudio Server.

Edit /etc/rstudio/rserver.conf and add a line like the following (with the path that you need to your library):

rsession-ld-library-path=/opt/someapp/lib:/opt/anotherapp/lib

https://docs.rstudio.com/ide/server-pro/r-sessions.html#locating-shared-libraries

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.