错误安装caffe

MAS*_*MAS 4 unix macos boost caffe

我想在我的Mac上安装caffe.我已经安装了boost但是我收到了这个错误:

make pycaffe -j8
LD -o .build_release/lib/libcaffe.so
clang: warning: argument unused during compilation: '-pthread'
ld: library not found for -lboost_thread-mt
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [.build_release/lib/libcaffe.so] Error 1
Run Code Online (Sandbox Code Playgroud)

Mar*_*qin 5

您可能在没有boost-thread的情况下安装了boost,或者安装了boost_thread-mt作为boost_thread的旧安装程序.如果是第二个,那么你可以只让从符号链接libboost_thread.alibboost_thread-mt.a.

如果这是第一个原因,那么你必须使用boost-thread重新安装brew,最简单的方法是获取Homebrew并使用它安装boost:

brew install boost
Run Code Online (Sandbox Code Playgroud)

哪个安装适当的库:

-> % ls  /usr/local/lib/libboost_thread-mt.* 
/usr/local/lib/libboost_thread-mt.a     /usr/local/lib/libboost_thread-mt.dylib
Run Code Online (Sandbox Code Playgroud)