对Linux Mint的安装来自Caffe:在/ usr /斌/劳工处:找不到-lhdf5_hl
问题描述:
每当我尝试安装朱古力到我的Linux Mint的机器,我不断收到这样的:对Linux Mint的安装来自Caffe:在/ usr /斌/劳工处:找不到-lhdf5_hl
AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so.1.0.0
/usr/bin/ld: cannot find -lhdf5_hl
/usr/bin/ld: cannot find -lhdf5
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
做任何你知道我可能会做错吗?感谢您的回应。
答
如果构建使用使+ Makefile.config CAFFE,添加libhdf5.so的位置(可以通过locate libhdf5.so
检索),例如 /usr/lib/x86_64-linux-gnu/hdf5/serial
,到LIBRARY_DIRS
变量。
如果您使用基于CMake的构建,这个路径添加到LD_LIBRARY_PATH和运行ldconfig:
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/hdf5/serial:$LD_LIBRARY_PATH
sudo ldconfig
你的系统缺少HDF5 –