必要なプラグインをインストール。
これまでと重複してるところもあるけど...
■リスト
- ImageMagick
- execjs
- therubyracer
- jpmobile
- rmagick
- paperclip
- mysql2
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
tar xvfz ImageMagick.tar.gz
cd ImageMagick-6.7.5-10/
./configure
make
make install
convert -version #バージョン確認
>Version: ImageMagick 6.7.5-10 2012-03-06
■Gamfile に追加
gem 'execjs'
gem 'therubyracer'
gem 'jpmobile', :require => 'action_pack'
gem 'rmagick'
gem 'paperclip'
■bundle を実行。 ⇒ エラー発生
bundle中にエラー!
rmagickのインストールでエラーらしい...
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
:
ズラズラーっと出たメッセージの中に、以下がいっぱい!
Perhaps you should add the directory containing `MagickCore.pc' to the PKG_CONFIG_PATH environment variable No package 'MagickCore' found
なので、
- env | grep PKG_CONFIG_PATH ⇒ ない
- find / -name MagickCore.pc # MagickCore.pcを探す。 >/usr/local/lib/pkgconfig/MagickCore.pc
- vi ~/.bash_profile # 常に PKG_CONFIG_PATH を追加するようにする。 以下を最終行に追加する。 >export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
■bundle 再実行 ⇒OK
0 件のコメント:
コメントを投稿