Linux – How install ImageMagic 6.6.2 on Ubuntu 10.04 (lucid)

imagemagicklinux

How install ImageMagic 6.6.2 on Ubuntu 10.04 (lucid)
Problem that lucid have old ImageMagic version(6.5.2)

Its very important because me need work with SVG grafics, In my local pc I have ubuntu 11.04 and ImageMagic 6.6.2 and all work fine, In server I have 6.5… and I have problem.
Reinstall ubuntu to 11.* this is no solution.

I tried change /etc/apt/source.list from ubuntu 10.04 (lucid) to list from ubuntu 11.04 (natty) and update ImageMagic. After this action I have ImageMagic 6.6.2 (I looked phpinfo())
but ImageMagick is not work now. If I try do any action I get error:

[error] 8996#0: *19983 FastCGI sent in stderr: "PHP Fatal error: Uncaught exception 'ImagickException' with message 'no decode delegate for this image format `/tmp/magick-XXnYKWKC' @ error/constitute.c/ReadImage/532'

How it fix? Or how return to old version imagemagick?

Problem if I try install from sources:

 /tmp/image/ImageMagick-6.7.2-7# ./configure
 configuring ImageMagick 6.7.2-7
 checking build system type... i686-pc-linux-gnu
 checking host system type... i686-pc-linux-gnu
 checking target system type... i686-pc-linux-gnu
 checking whether build environment is sane... yes
 checking for a BSD-compatible install... /usr/bin/install -c
 checking for a thread-safe mkdir -p... /bin/mkdir -p
 checking for gawk... no
 checking for mawk... mawk
 checking whether make sets $(MAKE)... yes
 checking for style of include used by make... GNU
 checking for gcc... gcc
 checking whether the C compiler works... no
 configure: error: in `/tmp/image/ImageMagick-6.7.2-7':
 configure: error: C compiler cannot create executables
 See `config.log' for more details
 /tmp/image/ImageMagick-6.7.2-7# 

Best Answer

Why is this a problem? It is a LTS version of Ubuntu so apparently you want to stick to stable versions (good choice). If you want to have newer version of ImageMagick then why not upgrade Ubuntu itself? Everything in between is unnecessary work combined with trouble.

By the way the version of ImageMagick on Ubuntu 10.04 is 6.5.7.8. So you have to update at least.

Related Topic