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:
-
Install imagemagick
sudo apt-get install imagemagick
-
Install imagemagick PECL extension
sudo apt-get install php5-imagick
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-
)