首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装opencv GEM - extconf.rb错误

安装opencv GEM - extconf.rb错误
EN

Stack Overflow用户
提问于 2013-01-15 01:22:21
回答 1查看 667关注 0票数 1

我已经被困在这里好几天了,所以请帮帮我!

我运行的是MAC (10.7.5),安装了Xcode(4.5.2)和命令行工具。Ruby 1.9.3-p362,RVM 1.17.8。还安装了apple-gcc42。我使用Homebrew进行安装。

当我尝试安装Opencv gem时,我得到以下错误:

代码语言:javascript
复制
*** 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>'

我已经尝试了几次重新安装RVM,并进行了类似问题中推荐的其他一些更改。

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

我该怎么办?

谢谢!

EN

回答 1

Stack Overflow用户

发布于 2013-06-12 11:12:08

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14323398

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档