2016-10-01 33 views
1

我试图编译朱古力,当运行make all命令,我有这个链接错误:在/ usr /斌/劳工处:找不到-lhdf5_hl

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:566: 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 

我怎样才能解决这个问题?

回答

8

在你Makefile.config变化:

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 

请注意,路径可能因操作系统而有所不同。

相关问题