Upgrading Image Magick
To get the latest and greatest version of Image Magick, you’ll want to compile from source rather than using yum to update it. Don’t worry, it’s easy. Run these steps on your server:
sudo su -
# uninstall old ImageMagick
yum remove ImageMagick
# get new ImageMagick sources
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
# untar
tar -zxvf ImageMagick*.tar.gz
cd ImageMagick*
# build and install
./configure
make
make install
# test ImageMagick (should not report an error, may want to scp over and check that it is a valid image)
convert logo: logo.png
# fix problem with rmagick not finding ImageMagick libraries
echo /usr/local/lib >> /etc/ld.so.conf.d/ImageMagick.conf
ldconfig
# update rmagick
gem install rmagick
# finally, test rmagick
ruby -rrubygems -e "require 'RMagick2'; puts Magick::Long_version;"
