Mihalism Technologies: ImageMagick & Imagick Image Library Installation Guide - Mihalism Technologies

Jump to content

Welcome to the Mihalism Multi Host technical support forum. Mihalism Technologies does not have the funding or staffing required to provide direct support for everyone so we rely on our knowledgeable community to assist users. Therefore, answers to questions are not guaranteed. We do have the time to directly help a few users a day. If interested, you can find information regarding premium support here.

Need help with templates or creating custom designs? Read the Mihalism Template Engine Guide or ask for help in this forum.
Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

ImageMagick & Imagick Image Library Installation Guide For Debian based OS. Rate Topic: -----

#1 User is offline   IcyTexx Icon

  • Advanced Member
  • PipPipPip
  • Group: Administrators
  • Posts: 139
  • Joined: 17-April 09

Posted 06 September 2009 - 08:06 AM

This guide is made for Debian based Operating Systems such as Debian or Ubuntu.
You also will need your own Virtual Private Server (VPS) or Dedicated Server.

Installing ImageMagick:

Start by removing any old versions previously installed via apt-get:
sudo apt-get remove imagemagick

Then update apt-get and install some supporting packages:
sudo apt-get update

sudo apt-get install libperl-dev gcc libjpeg62-dev libwmf-dev libz-dev libpng12-dev libx11-dev libxml2-dev libfreetype6-dev liblcms1-dev libexif-dev libltdl3-dev graphviz gs-gpl pkg-config

Use wget to grab the source from ImageMagick.org (ImageMagick.tar.gz).
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz

Once the source is downloaded, uncompress it:
tar -xzf ImageMagick.tar.gz

Now configure and make:
cd ImageMagick-6.5.0-0
./configure
make
sudo make install

Troubleshooting ImageMagick:

To avoid an error such as:
convert: error while loading shared libraries: libMagickCore.so.2: cannot open shared object file: No such file or directory

Add the following line to ~/.bashrc:
export LD_LIBRARY_PATH=/usr/local/lib

If you still get an error like the one above run ldconfig:
sudo ldconfig

You can confirm the install and available formats with:
identify -list format
and
convert -list configure

Installing Imagick Image Library (PHP):

Make sure u have pear installed:
apt-get install php-pear

Make sure you installed ImageMagick.
And then do:
pecl install imagick

When you've done that, you need to add this line to php.ini (in Ubuntu probably in /etc/php5/apache2/):
extension=imagick.so

Troubleshooting Imagick (PHP):

If you get an error like this:
configure: error: Cannot locate configuration program Wand-config

Either uninstall any ImageMagick installation you have and install it by this guide or run the following dommand:
apt-get install libmagick9-dev

And then re-run Imagick installation (above).

If you get an error:
sh: phpize: command not found
ERROR: `phpize' failed

Run:
apt-get install php5-dev

There you go!
Easy, isn't it?

This post has been edited by IcyTexx: 15 February 2010 - 05:20 PM

Posted Image
0

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked