我正在尝试在我的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