【发布时间】:2018-07-18 10:14:26
【问题描述】:
我正在使用 boost 1.66 在 Ubuntu 17.04 系统上安装 caffe。我可以毫无问题地执行make all 和make test:
me@icvr1:~/PackageDownloads/caffe$ make all
make: Nothing to be done for 'all'.
me@icvr1:~/PackageDownloads/caffe$ make test
make: Nothing to be done for 'test'.
但是,当我尝试make runtest 时,我收到以下错误:
me@icvr1:~/PackageDownloads/caffe$ make runtest
.build_release/tools/caffe
.build_release/tools/caffe: error while loading shared libraries: libboost_system.so.1.66.0: cannot open shared object file: No such file or directory
Makefile:532: recipe for target 'runtest' failed
make: *** [runtest] Error 127
现在,我知道libboost_system.so.1.66.0 存在于/usr/local/lib,(我相信)这是一个相当标准的位置:
me@icvr1:~/PackageDownloads/caffe$ ls /usr/local/lib/libboost_system*
/usr/local/lib/libboost_system.a /usr/local/lib/libboost_system.so /usr/local/lib/libboost_system.so.1.66.0
并且,在 caffe 的 Makefile.config 中,/usr/local/lib 位于库路径上:
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial
那么,我在这里缺少什么?我如何确保caffe 知道在哪里可以找到libboost_system.so.1.66.0?
【问题讨论】:
-
这应该可以帮助您解决这个问题stackoverflow.com/questions/4581305/…
标签: boost shared-libraries caffe