2

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?

Ethunxxx
  • 1,229
  • 4
  • 16
  • 34
  • 1
    You may adjust `LD_LIBRARY_PATH`, as suggested in the [another answer](https://stackoverflow.com/a/32560246/3440745) to the referenced question. – Tsyvarev Jul 09 '18 at 14:30
  • @Tsyvarev Thanks for your suggestion. Is this a safe command? I heard that a wrong setting of 'LD_LIBRARY_PATH' could damage the system. – Ethunxxx Jul 09 '18 at 14:36
  • This would prefer libraries, installed for your user, over system-wide ones. If your libraries are correct, everything will be OK. At most it can damage your user. – Tsyvarev Jul 09 '18 at 15:07

2 Answers2

5

This worked for me on Debian 10 (source):

sudo apt install pkg-config libhdf5-dev
Rafael Beirigo
  • 1,552
  • 1
  • 13
  • 11
2

Try sudo apt install python3-h5py after reinstalling. Solved the error for me in linux-aarch64

Vaibhav Jadhav
  • 2,020
  • 1
  • 7
  • 20
Ninad Madhab
  • 105
  • 1
  • 9