如何在PHP7和Debian上安装imagick? [英] How to install imagick on PHP7 and Debian?
本文介绍了如何在PHP7和Debian上安装imagick?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要安装Imagick,但我已经安装了php7和debian.我尝试这样做:
I need to install Imagick, but I've php7 and debian. I tried to do this :
apt-get install php-imagick
但是我有这个错误:
Unable to locate package php-imagick
我也尝试这样做
apt-get install php5-imagick
但是O认为这是对php5的命令,这是我在 imagick.ini
But O think this command is to php5, an dnow I've in /etc/php5/mods-available/
un imagick.ini
那么imagick是为php7安装的吗?
So is imagick is install for php7?
推荐答案
Debian Buster和PHP7.3
Debian Buster and PHP7.3
sudo apt-get install -y libmagickwand-dev
sudo apt-get install -y imagemagick
pecl install imagick
如果您没有 pecl
您可以尝试使用
if you don't have pecl
you could try to install it with
sudo apt-get install -y php-pear
或
sudo apt-get install -y pear
如果上述方法失败,您也可以从网上下载并使用php进行安装:
if above ways fail, you can alternatively download it from web and use php to install it:
wget -O ./go-pear.php http://pear.php.net/go-pear
php ./go-pear.php
rm ./go-pear.php
这篇关于如何在PHP7和Debian上安装imagick?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文