SysAdmin

How do I upgrade ImageMagick?

JJ
Jobin Joseph · Founder and CEO
·Published 16 January 2012·1 min read

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

wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz

Untar

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

configure and make

./configure make

Install

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: libMagick.so.10: 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/ld.so.conf.d/ImageMagick.conf ldconfig

# update rmagick

gem install rmagick

Finally, test rmagick

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

Jobin Joseph
Jobin Joseph, Founder and CEO
5x AWS Certified, ISO 27001:2022 Lead Implementer, 17+ years building cloud infrastructure for regulated industries.
About Jobin →

Reading this because your AWS bill or uptime is a problem?

30 minutes, direct with the founder, no sales pitch: one specific recommendation for your AWS workload.

Book a free 30-minute review
30 min Free Consultation →