尝试在 mac os 上安装 caffe

Posted

技术标签:

【中文标题】尝试在 mac os 上安装 caffe【英文标题】:Trying to install caffe on mac os 【发布时间】:2018-10-04 07:39:16 【问题描述】:

在运行以下步骤时: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】:

此错误因 boost 版本而上升。 解决这个问题:

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

【讨论】:

以上是关于尝试在 mac os 上安装 caffe的主要内容,如果未能解决你的问题,请参考以下文章

在 mac 上安装 caffe “错误:无效选项:--with-python”

在 Mac OS 上安装 OpenFoam

为啥在 Mac OS 上安装 Nokogiri 失败并缺少 libiconv?

如何在 Mac OS Sierra 10.12 上安装 Nokogiri

如何在 mac os x 上安装自定义手册(手册)页面

在 Mac OS 上安装 Spark