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?
Best Answer
The location of the particular library lies in running
which for my installation lies in