繁体   English   中英

在优胜美地Mac上安装OpenCV

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM