Reputation: 3593
I'm compiling a c++ program on Kubuntu that will use the hdf5 library. I have installed the hdf5 library using
sudo apt-get install libhdf5-7
sudo apt-get install libhdf5-cpp-7
But when I run the makefile for the program I get
make[2]: *** No rule to make target '/usr/local/lib/libhdf5.so', needed by 'src/libHDF5Wrapper.so'. Stop.
And indeed looking in /usr/lib
there is no libhdf5*
-files. Am I missing something in the installation of hdf5?
Upvotes: 2
Views: 3034
Reputation: 16344
in order to close this question I put my comment into this answer:
The correct location of the libraries on Ubuntu can either be found out using the online file list of the respective package or through:
ldconfig -p | grep libhdf5.so
which for me returns:
libhdf5.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libhdf5.so
Your makefile seems to wrongly assume the location of the library to be /usr/local/lib
, so you need to adjust the makefile to match the actual install location on your computer.
Upvotes: 2