Skip to content
Advertisement

Error building caffe – cannot find -lhdf5_hl

I was following this guide to install caffe. I am using ubuntu 16.04 and installing caffe for cpu only(i don’t have Nvidia gpu). https://chunml.github.io/ChunML.github.io/project/Installing-Caffe-CPU-Only/
But encountered the following error :

LD -o .build_release/lib/libcaffe.so.1.0.0
/usr/bin/ld: cannot find -lhdf5_hl
collect2: error: ld returned 1 exit status
Makefile:572: recipe for target '.build_release/lib/libcaffe.so.1.0.0' 
failed
make: *** [.build_release/lib/libcaffe.so.1.0.0] Error 1

Can someone please help me figure out how to get past this? Thanks

Advertisement

Answer

This solved it for me

sudo ln -sf libhdf5_serial.so libhdf5.so
sudo ln -sf libhdf5_serial_hl.so libhdf5_hl.so

how to symlink a file in linux – https://stackoverflow.com/a/1951752/6612871

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement