gpt4 book ai didi

ruby-on-rails - 安装 ruby​​-opencv (0.0.14) 时出错

转载 作者:太空宇宙 更新时间:2023-11-03 15:59:39 25 4
gpt4 key购买 nike

我正面临 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 安装 ruby​​-opencv -- --with-opencv-dir=/usr/local。

现在它可以工作了。

关于ruby-on-rails - 安装 ruby​​-opencv (0.0.14) 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28259415/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com