Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while loading shared libraries: libhdf5.so.101: cannot open shared object file

I'm currently trying to install this GitHub library on a Ubuntu 18.04 machine and I followed all the installation steps stated on the Github page. However, when I try to call the function siemens_to_ismrmrd in the command line, I get the following error:

error while loading shared libraries: libhdf5.so.101: cannot open shared object file: No such file or directory

libhdf5 is installed on my machine, though. Typing locate libhdf5.so in the command line gives

/home/username/anaconda3/lib/libhdf5.so
/home/username/anaconda3/lib/libhdf5.so.101
/home/username/anaconda3/lib/libhdf5.so.101.0.0
/home/username/anaconda3/pkgs/hdf5-1.10.1-h9caa474_1/lib/libhdf5.so
/home/username/anaconda3/pkgs/hdf5-1.10.1-h9caa474_1/lib/libhdf5.so.101
/home/username/anaconda3/pkgs/hdf5-1.10.1-h9caa474_1/lib/libhdf5.so.101.0.0

In another question here on SO, it was suggested to run sudo ldconfig. This also didn't help in my case, the same error still pops up.

The command echo $LD_LIBRARY_PATH which is recommended to look at in other questions returns nothing.

How can I solve this issue?

like image 938
Ethunxxx Avatar asked Oct 22 '25 19:10

Ethunxxx


1 Answers

This worked for me on Debian 10 (source):

sudo apt install pkg-config libhdf5-dev
like image 130
Rafael Beirigo Avatar answered Oct 25 '25 00:10

Rafael Beirigo