1

私はこれで数日間立ち往生しているので、助けてください!

Xcode(4.5.2) とコマンド ライン ツールがインストールされた状態で、MAC OS X(10.7.5) を実行しています。ルビー 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 エラーが表示されます)。

私は何をすべきか?

ありがとう!!!

4

1 に答える 1