-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't find hdf5.h when build caffe #156
Comments
I solved the header file problem according to here. But there is another problem: /usr/bin/ld: cannot find -lhdf5_hl
/usr/bin/ld: cannot find -lhdf5 so sad... |
Lucky! I solved the second problem! The lib names of hdf5 on debian have a postfix "serial", therefore To solve it, I created two symbolics: cd /usr/lib/x86_64-linux-gnu
sudo ln -s libhdf5_serial.so.8.0.2 libhdf5.so
sudo ln -s libhdf5_serial_hl.so.8.0.2 libhdf5_hl.so |
THX a lot, works for me on Ubuntu 15.04~ |
See also issue BVLC/caffe#2690 |
Thanks a lot...... worked in Ubuntu 16...... |
after do the two steps @tangshi mentioned, I continued to add the following lines in MakeFile.config |
YAY, thanks a lot! Worked on my Linux Mint 18(guess it's Sarah) too. |
the lbhdf5 you actually have will determine what symlink to do - so after ls /usr/lib/x86_64-linux-gnu to see what version you have, do the symlink taking that into account. (.e.g i had v10 not v8 as in post above) $ sudo ln -s /usr/lib/x86_64-linux-gnu/libhdf5_serial.so.10 /usr/lib/x86_64-linux-gnu/libhdf5.so |
thank you. had the same problem. |
thank you worked for me. |
ubuntu 16.04 -LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5 |
Thanks. Awesome community. This worked on Ubuntu 16.04! Be aware of what you are trying to simlink to I have libhdf5_serial.so.10 not libhdf5_serial.so.8.0.2 See @jeremy-rutman's comment above. Caffe compilation is now happily eating up my macbook's cycles. |
ln: fallo al crear el enlace simbólico '/usr/lib/x86_64-linux-gnu/libhdf5.so': El archivo ya existe Basically it fails to create the simlink because it states that the file already exists. Still, i keep getting the /usr/bin/ld: cannot find -lhdf5_serial_hl error... |
https://ahmedibrahimvt.wordpress.com/2017/02/19/fatal-error-hdf5-h-no-such-file-or-directory/ |
It did not work for me on So I had to
|
Thank you @bucketzxm. It works like a charm! |
Worked on |
You should use CMAKE and not Make if you are compiling with the solution above |
worked on ubuntu 16.04 LTS |
Worked on ubuntu 18.04, thanks Note - I had to change:
to
install opencv: And had to remove the following lines from the makefile since I am on cuda 9.0:
|
Thanks @loretoparisi this worked for me! |
Thank you! This worked for me |
This helped me |
Tried to do the symbolic link, those didn't work. This worked for me. Thanks. (i still have the symbolic links added too) |
where to find MakeFile.config? |
I want to install digits on my debian jessie.
When I build
caffe(NVIDIA's fork)
, I got errors complaining thathdf5.h
could not be found.I'm sure I had installed
libhdf5-serial-dev
andlibhdf5-dev
, and I found the header file in/usr/include/hdf5/serial
and its libs in/usr/lib/x86_64-linux-gnu
.So, what's wrong? Some one help me?
The build error message show below:
The text was updated successfully, but these errors were encountered: