How do I upgrade ImageMagick?

16. January 2012 SysAdmin 0

To get the latest and greatest version of ImageMagick, you need to compile from source rather than using yum to update it. Don’t worry, it’s easy.

Run these steps on your server:

If you are not root,

sudo su –

Uninstall old ImageMagick

yum remove ImageMagick

Get new ImageMagick sources



tar -zxvf ImageMagick*.tar.gz cd ImageMagick*

configure and make

./configure make


make install

Test ImageMagick (shouldn’t report an error)

convert logo: logo.gif


#If you get an error Message
convert: error while loading shared libraries: cannot open shared object file: No such file or directory …. Follow these steps,

cd /usr/bin/ mv convert convert.old ln -nfs /usr/local/bin/convert convert

# fix problem with rmagick not finding ImageMagick libraries

echo /usr/local/lib >> /etc/ ldconfig

# update rmagick

gem install rmagick

Finally, test rmagick

ruby -rrubygems -e “require ‘RMagick’; puts Magick::Long_version;”

0 0 votes
Article Rating

Notify of
Inline Feedbacks
View all comments