Redhat – How to install the latest Image Magick on RedHat Enterprise 6.6

imagemagickredhatrhel6

I am trying to install the latest ImageMagick (at least 6.8) from the RPM's available here on my RedHat Enterprise server

Distributor ID: RedHatEnterpriseServer
Release:        6.6
Codename:       Santiago

where the kernel is

2.6.32-431.el6.x86_64 GNU/Linux

but I run into dependency hell, starting with lzma, where I need >5 and RedHat has only 4.999.9.

I've tried adding CentOS and Fedora repositories but if I try to install imageMagick from there – or anything else for that matter, I get a lot of obsoleted packages, error messages and the like, and I fear I might break the whole thing.

Does anyone know of a better way? Am I better off installing from source?

Best Answer

On Red Hat systems, ImageMagick is available in the default base package repository so you only need to run:

sudo yum install ImageMagick

Note that the package was built with support for X11 and Gtk+ so it has a huge amount of of dependencies – most of which should only be required for a graphical desktop (and ideally shouldn’t be installed on a head-less server).

For RHEL 6, the version of ImageMagick is 6.5.4.7. If you need functionality that is only available in later versions, you’d be better compiling and installing from source; shoe-horning a binary RPM that was compiled for RHEL 5 wouldn’t make sense. Installing from source would also have the benefit that you could customise it by providing appropriate options to its configure script during the build process.