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?
serialsubdirectory IIRC. Regardless you can dodpkg -L libhdf5-dev. Or see the file list at File list of package libhdf5-dev in xenial of architecture amd64 – steeldriver Jan 10 '17 at 14:21sudo apt-get install libhdf5, I getE: Unable to locate package libhdf5. Did I make a mistake? – dimpol Jan 10 '17 at 14:42/usr/lib/x86_64-linux-gnu/hdf5/serial/. If you add the part aboutdpkg -L libhdf5-devas an answer, I will accept it. – dimpol Jan 10 '17 at 14:44