加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

macos – 安装caffe时出错

发布时间:2020-12-15 21:24:23 所属栏目:安全 来源:网络整理
导读:我想在我的Mac上安装caffe.我已经安装了boost但是我收到了这个错误: make pycaffe -j8LD -o .build_release/lib/libcaffe.soclang: warning: argument unused during compilation: '-pthread'ld: library not found for -lboost_thread-mtclang: error: lin
我想在我的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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读