2013-01-14 79 views
1

我一直堅持這一兩天,所以請幫助!安裝opencv創業板 - extconf.rb錯誤

我運行MAC OS X(10.7.5),安裝了Xcode(4.5.2)和命令行工具。 Ruby 1.9.3-p362,RVM 1.17.8。 apple-gcc42也已安裝。我使用Homebrew進行安裝。

當我嘗試安裝OpenCV的寶石,我得到以下錯誤:

*** 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幾次,使一些在類似的問題建議的其他變化。

我的寶石文件編譯得很好,沒有opencv gem,但是我遇到與RMagick類似的問題(顯示extconf.rb錯誤)。

我該怎麼辦?

謝謝!

回答

1

如果有其他人遇到這種情況,我在OS X上遇到了更好的類似問題,並且使用ruby-opencv gem獲得了更好的運氣。