ld:找不到用于-lboost_python(制作pycaffe)的库

时间:2018-06-21 11:11:24

标签: python-3.x homebrew caffe pycaffe

我正在尝试在Mac机器上安装caffe。我遵循了所有步骤,并对MakeFile.config进行了必要的更改。一切都成功了,直到“制作pycaffe”。现在,每次我尝试执行“ make pycaffe”时,都会引发此错误

CXX/LD -o python/caffe/_caffe.so python/caffe/_caffe.cpp
In file included from python/caffe/_caffe.cpp:17:
In file included from ./include/caffe/caffe.hpp:12:
./include/caffe/net.hpp:41:5: warning: unused typedef
  'INVALID_REQUESTED_LOG_SEVERITY' [-Wunused-local-typedef]
LOG_EVERY_N(WARNING, 1000) << "DEPRECATED: ForwardPrefilled() "
^
/usr/local/include/glog/logging.h:943:30: note: expanded from macro
  'LOG_EVERY_N'
                         INVALID_REQUESTED_LOG_SEVERITY);           \
                         ^
1 warning generated.
ld: library not found for -lboost_python
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [python/caffe/_caffe.so] Error 1

我尝试安装“ brew install / reinstall boost-python”和“ brew install boost-python3”,但它显示了这一点

Error: undefined method `sha1' for #<Class:0x007fb47f268988>
Please report this bug:
https://docs.brew.sh/Troubleshooting
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/boost.rb:4:in     
`<class:Boost>'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/boost.rb:1:in     
`load_formula'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:26:in `module_eval'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:26:in `load_formula'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:46:in 
`load_formula_from_path'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:101:in `load_file'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:92:in `klass'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:88:in `get_formula'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:281:in `factory'
/usr/local/Homebrew/Library/Homebrew/extend/ARGV.rb:70:in `block in 
resolved_formulae'
/usr/local/Homebrew/Library/Homebrew/extend/ARGV.rb:55:in `map'
/usr/local/Homebrew/Library/Homebrew/extend/ARGV.rb:55:in `resolved_formulae'
/usr/local/Homebrew/Library/Homebrew/cmd/reinstall.rb:13:in `reinstall'
/usr/local/Homebrew/Library/Homebrew/brew.rb:100:in `<main>'

任何帮助/提示将不胜感激。 谢谢

0 个答案:

没有答案