1

While compiling Caffe in Ubuntu 16.04, I got the following error:

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

Please suggest a way to successfully install caffe by removing this error?

karel
  • 114,770
Aurora
  • 11

1 Answers1

0

This worked for me, in 'Makefile.config' change line 94 and 95 to

LINE 94: INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial

LINE 95: LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib/x86_64-linux-gnu/hdf5/serial