2013-01-14 4 views
1

저는 며칠 동안이 일에 매달 렸습니다. 그래서 도와주세요!opencv GEM 설치하기 - extconf.rb 오류

Xcode (4.5.2) 및 명령 행 도구가 설치된 상태에서 MAC OS X (10.7.5)를 실행합니다. Ruby 1.9.3-p362, RVM 1.17.8. apple-gcc42도 설치되었습니다. 설치시 Homebrew를 사용합니다. 내가 RVM 몇 번을 다시 설치 및 이와 유사한 질문에서 권장하는 다른 일부 변경을 시도

*** 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>' 

:

내가 OpenCV의 보석을 설치하려고

, 나는 다음과 같은 오류가 발생합니다.

내 보석 파일은 opencv 보석 없이도 정상적으로 컴파일되지만 RMagick (extconf.rb 오류 표시)과 비슷한 문제가 있습니다.

어떻게해야합니까?

감사합니다 !!!

답변

1

다른 사람이 이런 경험이있는 경우 OS X에서 비슷한 문제가 더 잘 발생하고 ruby-opencv 보석을 사용하는 것이 더 좋습니다.