I'm having a terrible time trying to get a recent version of ImageMagick installed on a CentOS 6.3 x86_64 server. First, I [downloaded] 1 the RPM from the ImageMagick site and tried to install it. That failed due to missing dependencies:
error: Failed dependencies:
libHalf.so.4()(64bit) is needed by ImageMagick-6.8.0-4.x86_64
libIex.so.4()(64bit) is needed by ImageMagick-6.8.0-4.x86_64
libIlmImf.so.4()(64bit) is needed by ImageMagick-6.8.0-4.x86_64
libImath.so.4()(64bit) is needed by ImageMagick-6.8.0-4.x86_64
libltdl.so.3()(64bit) is needed by ImageMagick-6.8.0-4.x86_64
I have libtool-ltdl
installed, but that includes libltdl.so.7
, not libltdl.so.4
. I have a similar problem with libHalf
, libIex
, libIlmImf
and libImath
. Typically, you can install OpenEXR to get those dependencies. Unfortunately, CentOS 6.3 includes OpenEXR 1.6.1, which includes ilmbase-devel 1.0.1. And that release of ilmbase-devel includes newer versions of those dependencies:
libHalf.so.6
libIex.so.6
libIlmImf.so.6
libImath.so.6
I next tried following the [instructions] 2 for installing ImageMagick from source. No luck there either. I get a build error:
RPM build errors:
File not found by glob: /home/sean/rpmbuild/BUILDROOT/ImageMagick-6.8.0-4.x86_64/usr/lib64/ImageMagick-6.8.0/modules-Q16/coders/djvu.*
I even re-ran configure
to explicitly exclude djvu and I still get the same error. At this point, I'm pulling my hair out.
What's the easiest way to get a relatively recent version of ImageMagick (> 6.7) installed on CentOS 6.3? Does someone offer RPMs with dependencies somewhere?
You shouldn't be having these problems... I tried to search for nice, canned binaries of a current version of ImageMagick. I couldn't find any that didn't have odd prerequisites...
So I spun up a CentOS 6.3 virtual machine and built the newest ImageMagick SRPM file. You may want to enable the RepoForge repository (formerly RPMForge) as well. The build went without a hitch!
System information:
Begin the installation:
These files were generated:
Install the package:
Check installed binaries:
Check the newly-installed package version number:
Enjoy!!
Since nobody mentioned a "hassle-free" alternative, I'm going to add a new answer.
If you don't mind using non-official repositories, you can enable the Remi repo as described here http://blog.famillecollet.com/pages/Config-en. After that, just type
yum install ImageMagick-last.x86_64 ImageMagick-last-devel.x86_64
And you'll get one of the latest versions available, already packaged and with every dependency correctly resolved and handled by yum. No need to recompile anything.
Note: It's not exactly up to date with the version you can find on the official website, but it seems to be no more than 1-2 months behind. For example, at the time of writing the latest official version is 6.8.8 (Jan 12, 2014) while the one I found on the remi repo is 6.8.7 (Dec 15, 2013).
I had this problem with CentOS 7.2 and ImageMagick 6.9.3-9. After much trial and error I discovered that 6.9.3-8 works, while 6.9.3-9 has dependencies that fail to resolve. Fortunately http://rpm.pbone.net/ found a repository with the older version.
It looks like you'll need the following or at least some of the following:
Installing all 4 shouldn't cause that much of a burden or increase in disk space usage, but those are the packages being returned when I searched on http://rpm.pbone.net/ for 'libHalf.so.4' or ' libIlmImf.so.4' for example.
If you need the development version of ImageMagicK installed as well, you can run:
rpm -ivh /root/rpmbuild/RPMS/x86_64/ImageMagick-devel-6.8.0-4.x86_64.rpm
This step will be required if you plan to run the ImagicK (PHP) bindings. To install iMagicK type:
pecl install imagick