How do I upgrade ImageMagick?

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;”

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
Scroll to Top