Howto: Install Imagick (for php) on Ubuntu 11.10
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
Installation steps for Ubuntu 12.04:
Install imagemagick
sudo apt-get install imagemagick
Install imagemagick PECL extension
sudo apt-get install php5-imagick
Restart webserver
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).