Where Does Libhdf5. So Get Stored After Running `Sudo Apt-Get Install Libhdf5-Dev`?
New User to Ubuntu (Running 16.04) Here. I Need to Use Hdf5, More Specifically: I Need Ld -Lhdf5 Be Able to Run Without Error. as Far as I Can Tell, What...
New user to Ubuntu (running 16.04) here. I need to use HDF5, more specifically: I need ld -lhdf5 be able to run without error.
As far as I can tell, what should work is running sudo apt-get install libhdf5-dev. This generates the folder at /usr/include/hdf5/ as expected. However when I run:
ld -lhdf5
I get:
ld: cannot find -lhdf5
When I run:
ld -lhdf5 --verbose
I get as last few lines:
==================================================
attempt to open //usr/local/lib/x86_64-linux-gnu/libhdf5.so failed
attempt to open //usr/local/lib/x86_64-linux-gnu/libhdf5.a failed
attempt to open //lib/x86_64-linux-gnu/libhdf5.so failed
attempt to open //lib/x86_64-linux-gnu/libhdf5.a failed
attempt to open //usr/lib/x86_64-linux-gnu/libhdf5.so failed
attempt to open //usr/lib/x86_64-linux-gnu/libhdf5.a failed
attempt to open //usr/local/lib64/libhdf5.so failed
attempt to open //usr/local/lib64/libhdf5.a failed
attempt to open //lib64/libhdf5.so failed
attempt to open //lib64/libhdf5.a failed
attempt to open //usr/lib64/libhdf5.so failed
attempt to open //usr/lib64/libhdf5.a failed
attempt to open //usr/local/lib/libhdf5.so failed
attempt to open //usr/local/lib/libhdf5.a failed
attempt to open //lib/libhdf5.so failed
attempt to open //lib/libhdf5.a failed
attempt to open //usr/lib/libhdf5.so failed
attempt to open //usr/lib/libhdf5.a failed
attempt to open //usr/x86_64-linux-gnu/lib64/libhdf5.so failed
attempt to open //usr/x86_64-linux-gnu/lib64/libhdf5.a failed
attempt to open //usr/x86_64-linux-gnu/lib/libhdf5.so failed
attempt to open //usr/x86_64-linux-gnu/lib/libhdf5.a failed
ld: cannot find -lhdf5
None of these places contain ideed this file or something similar. Can anyone help me where it should be?
1 Answer
The location of the particular library lies in running
dpkg -L libhdf5-dev
which for my installation lies in
/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so