Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/opencv/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby 安装opencv GEM-extconf.rb时出错_Ruby_Opencv_Extconf.rb - Fatal编程技术网

Ruby 安装opencv GEM-extconf.rb时出错

Ruby 安装opencv GEM-extconf.rb时出错,ruby,opencv,extconf.rb,Ruby,Opencv,Extconf.rb,我已经被困在这个问题上好几天了,所以请帮助我 我运行MacOSX(10.7.5),安装了Xcode(4.5.2)和命令行工具。Ruby 1.9.3-p362,RVM 1.17.8。apple-gcc42也已安装。我使用自制软件进行安装 当我尝试安装Opencv gem时,出现以下错误: *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary librari

我已经被困在这个问题上好几天了,所以请帮助我

我运行MacOSX(10.7.5),安装了Xcode(4.5.2)和命令行工具。Ruby 1.9.3-p362,RVM 1.17.8。apple-gcc42也已安装。我使用自制软件进行安装

当我尝试安装Opencv gem时,出现以下错误:

*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/samanthacabral/.rvm/rubies/ruby-1.9.3-p362/bin/ruby
--with-opencv-dir
--without-opencv-dir
--with-opencv-include
--without-opencv-include=${opencv-dir}/include
--with-opencv-lib
--without-opencv-lib=${opencv-dir}/lib
--with-ffcall-dir
--without-ffcall-dir
--with-ffcall-include
--without-ffcall-include=${ffcall-dir}/include
--with-ffcall-lib
--without-ffcall-lib=${ffcall-dir}/lib
--with-cxcorelib
--without-cxcorelib
extconf.rb:32:in `block in <main>': libcxcore not found. (RuntimeError)
from extconf.rb:31:in `each'
from extconf.rb:31:in `<main>'
***extconf.rb失败***
由于某些原因无法创建Makefile,可能是缺少
必要的库和/或标题。查看mkmf.log文件了解更多信息
细节。您可能需要配置选项。
提供的配置选项:
--使用opt dir
--选择包含
--不带opt include=${opt dir}/include
--使用opt lib
--不带opt lib=${opt dir}/lib
--用make prog
--没有make prog
--srcdir=。
--库尔迪尔
--ruby=/Users/samanthacabral/.rvm/rubies/ruby-1.9.3-p362/bin/ruby
--使用opencvdir
--没有opencv目录
--使用opencv包括
--不带opencv include=${opencv dir}/include
--使用opencv库
--不带opencv lib=${opencv dir}/lib
--使用ffcall dir
--不带ffcall dir
--与ffcall包括
--不带ffcall include=${ffcall dir}/include
--使用ffcall lib
--不带ffcall lib=${ffcall dir}/lib
--使用cxcorelib
--没有cxcorelib
extconf.rb:32:在'block in'中:未找到libcxcore。(运行时错误)
摘自extconf.rb:31:in'each'
来自extconf.rb:31:in`'
我试过几次重新安装RVM,并做了一些类似问题中建议的其他更改

我的gem文件在没有opencvgem的情况下编译得很好,但是我在使用RMagick时遇到了类似的问题(显示extconf.rb错误)

我该怎么办


谢谢

如果有其他人遇到这种情况,我最好在OS X上遇到类似的问题,并且在ruby opencv gem上运气更好。

如果有其他人遇到这种情况,我最好在OS X上遇到类似的问题,在ruby opencv gem上运气更好