Howto: Install Imagick (for php) on Ubuntu 11.10

The package has a different name in Ubuntu.

 sudo apt-get install php5-imagick

The error with building via PECL means you must install libmagickwand-dev, libmagickcore3, libmagickwand3 probably (there are alternatives: graphicsmagick-imagemagick-compat, see Synaptic).


Installation steps for Ubuntu 12.04:

  1. Install imagemagick

    sudo apt-get install imagemagick

  2. Install imagemagick PECL extension

    sudo apt-get install php5-imagick

  3. Restart webserver


Installation steps for Ubuntu < 16.04:

sudo apt-get install imagemagick php5-imagick; sudo service apache2 restart

Installation steps for Ubuntu > 16.04:

sudo apt-get install imagemagick php-imagick; sudo service apache2 restart

For Ubuntu 16 or later:

sudo apt-get install php-imagick

(note the use of php- instead of php5-)