在Ubuntu上安装imagick PHP扩展

我正在尝试在我的Ubuntu服务器上安装imagick pecl扩展,并得到以下错误.我已经使用aptitude安装了 ImageMagick rpm,pecl扩展名是版本2.3.0.我在网上环顾四周,却找不到任何指向正确方向的东西.我也尝试寻找任何看起来可能是Wand-config或MagickWand-config程序的错误提到但却找不到的东西.
steven@server:/var/www$sudo pecl install imagick
downloading imagick-2.3.0.tgz ...
Starting to download imagick-2.3.0.tgz (86,976 bytes)
.....................done: 86,976 bytes
12 source files,building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
Please provide the prefix of Imagemagick installation [autodetect] :
building in /var/tmp/pear-build-root/imagick-2.3.0
running: /tmp/pear/temp/imagick/configure --with-imagick
*** ... snip ... ***
checking ImageMagick MagickWand API configuration program... configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
ERROR: `/tmp/pear/temp/imagick/configure --with-imagick' failed

我剪切了大部分输出,因为它似乎没有用,但我可以发布请求.

> PHP是5.2.4
> ImageMagick是6.3.7
>在安装ImageMagick之前,今天还要升级supp aptitude升级RPM

您需要安装ImageMagick开发包.在Ubuntu中尝试:
sudo apt-get install libmagickwand-dev libmagickcore-dev

相关文章

文章浏览阅读2.3k次,点赞4次,收藏22次。最近安装了CARLA预...
文章浏览阅读6.3k次,点赞5次,收藏15次。在清华镜像中下载U...
文章浏览阅读5k次。linux环境, python3.7.问题描述: 安装...
文章浏览阅读4.2k次,点赞4次,收藏17次。要安装这个 standa...
文章浏览阅读894次,点赞51次,收藏31次。在安卓使用vscode主...