caffe /usr/bin/ld: cannot find -lhdf5_hl /usr/bin/ld: cannot find -lhdf5

sometimes you may come up with the following errors:

/usr/bin/ld: cannot find -lhdf5_hl
/usr/bin/ld: cannot find -lhdf5

here is the solution:

In your Makefile.config change:

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

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

你可能感兴趣的:(科研)