Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find libhdf5_hl.so.10 #100

Open
WeiCSong opened this issue Aug 3, 2018 · 3 comments
Open

cannot find libhdf5_hl.so.10 #100

WeiCSong opened this issue Aug 3, 2018 · 3 comments

Comments

@WeiCSong
Copy link

WeiCSong commented Aug 3, 2018

Hi hdf5r developer,when i load an R package(seurat) which depends on hdf5r,i got following error:

Error: package or namespace load failed for ‘Seurat’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/lustre/home/acct-bmelgn/bmelgn-3/spack/opt/linux-centos7-x86_64/gcc-5.4.0/r-3.5.0-tudjrvhf4huss27eyyzgyfx6zwu4nu66/rlib/R/library/hdf5r/libs/hdf5r.so':
libhdf5_hl.so.10: cannot open shared object file: No such file or directory
Execution halted

I can find libhdf5_hl.so.10 under the path of hdf5

"/lustre/home/acct-bmelgn/bmelgn-3/spack/opt/linux-centos7-x86_64/gcc-5.4.0/hdf5-1.8.19-zdptwox2bglutn3rr6ogajzqelodyriz/lib/libhdf5_hl.so.10"

I tried to copy this file to hdf5r library, but didnt help. I wonder why R cant find this file.Wish to learn from you. Thanks!

@chuseq
Copy link

chuseq commented Sep 11, 2018

See #94

@panxueling
Copy link

I had the same problem. It's been solved now.

install.packages("hdf5r")

The following is the output of the software installation:
checking for hdf5_hl.h... yes
checking for H5LTpath_valid in -lhdf5_hl... yes
checking for main in -lhdf5_hl... yes
checking for matching HDF5 Fortran wrapper... /share/software/apps/anaconda2/bin/h5fc
Found hdf5 with version: 1.10.4
checking for ggrep... /usr/bin/grep
checking whether /usr/bin/grep accepts -o... yes
checking for ggrep... (cached) /usr/bin/grep
checking whether /usr/bin/grep accepts -o... yes
Using variables:
HDF5_LIBS= -L/share/software/apps/anaconda2/lib -L/share/software/apps/anaconda2/lib -L/share/software/apps/anaconda2/lib -lrt -lpthread -lz -ldl -lm

find 'HDF5_LIBS= -L/share/software/apps/anaconda2/lib '

linux code: ls /share/software/apps/anaconda2/lib/libhdf5_hl.so.100
vim ~/.bashrc
Added to the end script "export LD_LIBRARY_PATH = $LD_LIBRARY_PATH: / share/software/apps/anaconda2 / lib"
R code: dyn.load("/share/software/apps/anaconda2/lib/libhdf5_hl.so.100")
install.packages("hdf5r")

@mmokrejs
Copy link

Thanks to @panxueling , due to

checking for matching HDF5 Fortran wrapper... /share/software/apps/anaconda2/bin/h5fc
...
Using variables:
HDF5_LIBS= -L/share/software/apps/anaconda2/lib -L/share/software/apps/anaconda2/lib -L/share/software/apps/anaconda2/lib -lrt -lpthread -lz -ldl -lm

I realized that in my case wrong (system-wide while outdated) h5cc was being found but the libs were searched elsewhere. After that I could easily reinstall hdf5r and Rhdf5lib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants