我面临 gem ruby-opencv 安装问题
Gem files will remain installed in /home/k2/.rvm/gems/ruby-2.1.2@rails4/gems/ruby-opencv-0.0.14 for inspection.Results logged to /home/k2/.rvm/gems/ruby-2.1.2@rails4/extensions/x86_64-linux/2.1.0/ruby-opencv-0.0.14/gem_make.out
An error occurred while installing ruby-opencv (0.0.14), and Bundler cannot continue.
Make sure that `gem install ruby-opencv -v '0.0.14'` succeeds before bundling.
我也尝试过以下一个
gem install ruby-opencv -v '0.0.14'
ruby -v => 2.1.2
最佳答案
您需要从以下位置下载opencv包 https://github.com/Itseez/opencv/tree/master使用,
git 克隆 https://github.com/Itseez/opencv.git
或单击同一页面中的下载按钮。
并使用 http://docs.opencv.org/doc/tutorials/introduction/linux_install/linux_install.html 安装上述软件包
然后开始安装gem如下
gem install ruby-opencv -- --with-opencv-dir=/usr/local。
现在就可以了。
关于ruby-on-rails - 安装 ruby-opencv (0.0.14) 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28259415/