尝试在Mac OS上安装Caffe

时间:2018-10-04 07:39:17

标签: macos homebrew boost-python

在运行以下步骤:brew install -build-from-source -fresh -vd boost boost-python

它抛出下面的错误

/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/boost.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/boost-python.rb
Error: No such file or directory @ realpath_rec - /usr/local/Cellar/boost/1.62.0
/usr/local/Homebrew/Library/Homebrew/keg.rb:172:in `realpath'
/usr/local/Homebrew/Library/Homebrew/keg.rb:172:in `realpath'
/usr/local/Homebrew/Library/Homebrew/keg.rb:172:in `for'
/usr/local/Homebrew/Library/Homebrew/formula.rb:574:in `linked_version'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:193:in `block in install'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:126:in `each'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:126:in `install'
/usr/local/Homebrew/Library/Homebrew/brew.rb:91:in `<main>'

请让我知道如何解决此问题。

1 个答案:

答案 0 :(得分:0)

由于增强版本,此错误增加。 解决此问题的方法:

    Step 1:brew search boost
    check the compactability of your boost version.
    Step 2:brew uninstall boost
    Step 3:brew install boost