我想在我的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
解决方法
您可能在没有boost-thread的情况下安装了boost,或者安装了boost_thread-mt作为boost_thread的旧安装程序.如果它是第二个,那么你可以只从libboost_thread.a到libboost_thread-mt.a进行符号链接.
如果这是第一个原因,那么你必须使用boost-thread重新安装brew,最简单的方法是get Homebrew并使用它安装boost:
brew install boost
哪个安装适当的库:
-> % ls /usr/local/lib/libboost_thread-mt.* /usr/local/lib/libboost_thread-mt.a /usr/local/lib/libboost_thread-mt.dylib