Howto: Install Imagick (for php) on Ubuntu 11.10

无人久伴 提交于 2019-11-28 16:47:52

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
Karl Wolf

For Ubuntu 16 or later:

sudo apt-get install php-imagick

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

Ravi Sharma

Install imagemagick with :

sudo apt-get install imagemagick

Install imagemagick PECL extension :

sudo apt-get install php5-imagick

Restart webserver

With Ubuntu 16.04 (Xenial) with PHP 5.6 not 7. PHP 7 was disabled.

  1. sudo apt-get update
  2. sudo apt-get install imagemagick php5.6-imagick
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!