投稿「Redmine のアップグレード全手順(1.2.3 → 2.2.2) その1」からの続きです。
2.5.セッション管理用秘密鍵の作成
改めて、rmagick のインストールを実行してみます。
[root ~]# gem install rmagick -v 2.0.0 Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. /usr/local/bin/ruby extconf.rb checking for Ruby version >= 1.8.2... yes checking for Magick-config... yes checking for ImageMagick version >= 6.3.0... no Can't install RMagick 2.0.0. You must have ImageMagick 6.3.0 or later. *** 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 --without-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=/usr/local/bin/ruby Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/rmagick-2.0.0 for inspection. Results logged to /usr/local/lib/ruby/gems/1.8/gems/rmagick-2.0.0/ext/RMagick/gem_make.out
また、失敗します。
ImageMagickのバージョンが低いようです。バージョン6.3.0以上を要求しています。
[root ~]# Magick-config --version 6.2.8
インストールしたバージョンは 6.2.8 ですので、アンインストールします。
[root ~]# yum erase ImageMagick.x86_64 Removed: ImageMagick.x86_64 0:6.2.8.0-15.el5_8 Dependency Removed: ImageMagick-devel.x86_64 0:6.2.8.0-15.el5_8 Complete!
ImageMagick の最新RPMを取得して、インストールしてみます。
[root ~]# wget http://www.imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-6.8.2-2.x86_64.rpm [root ~]# wget http://www.imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-devel-6.8.2-2.x86_64.rpm [root ~]# yum install ImageMagick-6.8.2-2.x86_64.rpm ImageMagick-devel-6.8.2-2.x86_64.rpm (略) Package ImageMagick-devel-6.8.2-2.x86_64.rpm is not signed (略)
失敗しますので、rpmで試します。
[root ~]# rpm -ivh ImageMagick-6.8.2-2.x86_64.rpm ImageMagick-devel-6.8.2-2.x86_64.rpm エラー: 依存性の欠如: libHalf.so.4()(64bit) は ImageMagick-6.8.2-2.x86_64 に必要とされています libIex.so.4()(64bit) は ImageMagick-6.8.2-2.x86_64 に必要とされています libIlmImf.so.4()(64bit) は ImageMagick-6.8.2-2.x86_64 に必要とされています libImath.so.4()(64bit) は ImageMagick-6.8.2-2.x86_64 に必要とされていま す libfftw3.so.3()(64bit) は ImageMagick-6.8.2-2.x86_64 に必要とされていま す libjasper.so.1()(64bit) は ImageMagick-6.8.2-2.x86_64 に必要とされています libltdl.so.3()(64bit) は ImageMagick-6.8.2-2.x86_64 に必要とされています freetype-devel は ImageMagick-devel-6.8.2-2.x86_64 に必要とされています jasper-devel は ImageMagick-devel-6.8.2-2.x86_64 に必要とされています libfftw3.so.3()(64bit) は ImageMagick-devel-6.8.2-2.x86_64 に必要とされ ています libltdl.so.3()(64bit) は ImageMagick-devel-6.8.2-2.x86_64 に必要とされています
これでも、依存するファイルを個別にインストールする必要がありそうです。
そこで、次のように一つ一つインストールしていきます。
[root ~]# yum install fftw3.x86_64 [root ~]# yum install fltk.x86_64 ← ここで、mesa-libGLU.x86_64もインストールされます。 [root ~]# yum install freetype-devel.x86_64 [root ~]# yum install jasper-devel.x86_64 [root ~]# yum install libtool-ltdl.x86_64 [root ~]# yum install openexr.x86_64
ここまで終わったところで、改めて次の通り実行します。
# rpm -ivh ImageMagick-6.8.2-2.x86_64.rpm ImageMagick-devel-6.8.2-2.x86_64.rpm 準備中... ########################################### [100%] 1:ImageMagick ########################################### [100%] 2:ImageMagick-devel ########################################### [100%]
ここまで成功です。
この先は次の投稿「Redmine のアップグレード全手順(1.2.3 → 2.2.2) その3」で。