CentOS6.5へのruby-opencvインストール時にエラーが発生してしまいます。
コマンドはgem install ruby-opencv -- --with-opencv-dir=/etc/opencv
です
環境
CentOS6.5
ruby 2.2.3
opencv 2.4.12
本コマンド実行時のエラーは下記のようになっています。
Building native extensions with: '--with-opencv-dir=/etc/opencv' This could take a while... ERROR: Error installing ruby-opencv: ERROR: Failed to build gem native extension. /home/ops/.rbenv/versions/2.2.3/bin/ruby -r ./siteconf20160417-27281-mv955t.rb extconf.rb --with-opencv-dir=/etc/opencv >> Check the required libraries... checking for main() in -lstdc++... yes checking for main() in -lopencv_calib3d... yes checking for main() in -lopencv_contrib... yes checking for main() in -lopencv_core... yes checking for main() in -lopencv_features2d... yes checking for main() in -lopencv_flann... yes checking for main() in -lopencv_highgui... yes checking for main() in -lopencv_imgproc... yes checking for main() in -lopencv_legacy... yes checking for main() in -lopencv_ml... yes checking for main() in -lopencv_objdetect... yes checking for main() in -lopencv_video... yes checking for main() in -lopencv_photo... yes checking for main() in -lopencv_gpu... yes checking for main() in -lopencv_nonfree... yes >> Check the required headers... checking for opencv2/core/core_c.h... no *** 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.
opencv自体がうまくインストールできたか不安があります。
opencvのmake install
実行時にエラーが発生しなかったのでインストール自体は出来たと思いますがpathの設定等出来ていないような気もします。
インストール時のコマンドは下記となっています。
cd /tmp wget https://github.com/Itseez/opencv/archive/2.4.12.zip unzip 2.4.12.zip mkdir /etc/opencv cd /etc/opencv cmake28 /tmp/opencv-2.4.12 make make install
opencvが正しくインストールできているか自信がありません。
アドバイス等あれば教えていただきたく。
よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/04/18 02:07