macos – 安装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

解决方法

您可能在没有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

相关文章

用的openwrt路由器,家里宽带申请了动态公网ip,为了方便把2...
#!/bin/bashcommand1&command2&wait从Shell脚本并行...
1.先查出MAMP下面集成的PHP版本cd/Applications/MAMP/bin/ph...
1、先输入locale-a,查看一下现在已安装的语言2、若不存在如...
BashPerlTclsyntaxdiff1.进制数表示Languagebinaryoctalhexa...
正常安装了k8s后,使用kubect工具后接的命令不能直接tab补全...