我已经坚持了几天了,所以请帮忙!
我运行 MAC OS X(10.7.5),安装了 Xcode(4.5.2) 和命令行工具。红宝石 1.9.3-p362,RVM 1.17.8。apple-gcc42 也已安装。我使用 Homebrew 进行安装。
当我尝试安装 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>'
我已经尝试过几次重新安装 RVM 并进行了类似问题中推荐的其他一些更改。
我的 gem 文件在没有 opencv gem 的情况下编译得很好,但是我在使用 RMagick 时遇到了类似的问题(显示 extconf.rb 错误)。
我应该怎么办?
谢谢!!!