Macos 在Yosemite Mac上安装OpenCV
我正在尝试使用以下方式在约塞米蒂岛上安装OpenCV:Macos 在Yosemite Mac上安装OpenCV,macos,opencv,homebrew,Macos,Opencv,Homebrew,我正在尝试使用以下方式在约塞米蒂岛上安装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
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>'
错误:Opencv:Class的未定义方法“不推荐的_选项”
请报告此错误:
https://github.com/Homebrew/homebrew/wiki/troubleshooting
/usr/local/Library/Taps/homebrew/homebrew-science/opencv.rb:42:in`'
/usr/local/Library/Taps/homebrew/homebrew science/opencv.rb:1:in`'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/Ruby/2.0.0/rubygems/core\u ext/kernel\u require.rb:55:in'require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/Ruby/2.0.0/rubygems/core\u ext/kernel\u 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“公式中的块”
/usr/local/Library/Homebrew/extend/ARGV.rb:12:在“地图”中
/usr/local/Library/Homebrew/extend/ARGV.rb:12:in `公式'
/usr/local/Library/Homebrew/cmd/install.rb:27:in'install'
/usr/local/Library/brew.rb:131:in`'
有人能帮你解决这个问题吗?更新你的自制软件
brew update
我建议你安装不同的版本,好像这个版本有约塞米蒂的漏洞 试试这个
brew tap homebrew/science
brew install opencv3
一旦安装,请尝试执行以下命令
brew doctor
brew update
如果您无法实现安装,请查看此链接以获取更多帮助,这将帮助您从生成安装
StackOverflow是此报告的错误位置。按照“请报告此错误:”后链接的网页上的说明,将其报告为自制错误。请运行
brew update
。