Closed mike-lawrence closed 7 years ago
Solved it! I had to set the LD_LIBRARY_PATH
environment variable to /usr/local/lib
. Successfully installed via:
Sys.setenv(LD_LIBRARY_PATH=paste("/usr/local/lib", Sys.getenv("LD_LIBRARY_PATH"),sep=":"))
devtools::install_github('mannau/h5')
Oops, spoke too soon. Installs fine, but on load:
> library(h5)
Error: package or namespace load failed for ‘h5’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/mike/R/x86_64-pc-linux-gnu-library/3.4/h5/libs/h5.so':
libhdf5_cpp.so.101: cannot open shared object file: No such file or directory
Ah, fixed it. I'd actually had hdf5 installed previously without the --enable-cxx=yes
, and when I re-installed it with this config flag I forgot to run ldconfig again. For anyone coming after me, after you install hdf5, you have to run:
echo "/usr/local/lib" | sudo tee -a /etc/ld.so.conf.d/hdf5.conf
sudo ldconfig
I'm on arch, installed
hdf5-1.10.1
with./configure --enable-cxx=yes --enable-static=yes --enable-shared=yes --prefix=/usr/local
, and when I attempt to install h5 from the latest source I get the following output:I ran
find / -name "libhdf5_cpp.so.101"
and it is in/usr/local/lib/
as expected. Any suggestions?