[英]Installing OpenCV on Yosemite Mac
我正在嘗試使用以下方法在優勝美地上安裝OpenCV:
brew tap homebrew/science
brew install opencv
它給了我以下錯誤:
Error: undefined method `deprecated_option' for Opencv:Class
Please report this bug:
https://github.com/Homebrew/homebrew/wiki/troubleshooting
/usr/local/Library/Taps/homebrew/homebrew-science/opencv.rb:42:in `<class:Opencv>'
/usr/local/Library/Taps/homebrew/homebrew-science/opencv.rb:1:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/Library/Homebrew/formulary.rb:65:in `klass'
/usr/local/Library/Homebrew/formulary.rb:50:in `get_formula'
/usr/local/Library/Homebrew/formulary.rb:198:in `factory'
/usr/local/Library/Homebrew/extend/ARGV.rb:12:in `block in formulae'
/usr/local/Library/Homebrew/extend/ARGV.rb:12:in `map'
/usr/local/Library/Homebrew/extend/ARGV.rb:12:in `formulae'
/usr/local/Library/Homebrew/cmd/install.rb:27:in `install'
/usr/local/Library/brew.rb:131:in `<main>'
誰能解決這個問題?
更新您的自制軟件
brew update
我建議您安裝其他版本,似乎該版本存在優勝美地的錯誤。
嘗試這個
brew tap homebrew/science
brew install opencv3
安裝完成后,請嘗試以下命令
brew doctor
brew update
如果無法安裝,請查看此鏈接以獲取更多幫助,這將幫助您從內部安裝。
http://www.learnopencv.com/install-opencv-3-on-yosemite-osx-10-10-x/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.