compiling caffe on Yosemite

隐身守侯 提交于 2019-12-03 01:05:39

its a boost version problem.

If you using brew do the following:

http://itinerantbioinformaticist.blogspot.com/2015/05/caffe-incompatible-with-boost-1580.html

charliebeckwith

I had the same problem. As someone else said, it turned out for me to be a problem with boost 1.58.0

I fixed it by doing the following (assuming you have brew installed)

 $ cd /usr/local/Library/Formula 
 $ cd Library/Formula/
 $ cp boost.rb boost_backup.rb
 $ cp boost-python.rb boost-python_backup.rb
 $ wget https://raw.githubusercontent.com/Homebrew/homebrew/6fd6a9b6b2f56139a44dd689d30b7168ac13effb/Library/Formula/boost.rb
 $ mv boost.rb.1 boost.rb
 $ wget https://raw.githubusercontent.com/Homebrew/homebrew/3141234b3473717e87f3958d4916fe0ada0baba9/Library/Formula/boost-python.rb
 $ mv boost-python.rb.1 boost-python.rb
 $ brew uninstall --force boost
 $ brew install boost

After doing this I was able to make all with GPU support no problem.

source

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!