如何:在Ubuntu 11.10上安装Imagick(用于php) [英] Howto: Install Imagick (for php) on Ubuntu 11.10
问题描述
我正在尝试安装ImagicK,这是我想用于我的项目的Yii扩展程序所必需的.
I'm attempting to install ImagicK as its required for a Yii Extension I want to use for my project.
我检查并遵循了一些不同的建议,但到目前为止没有任何效果,最终框架扩展仍然会向我抛出错误(必须安装ImagicK).
I've checked around and followed a few different suggestions but nothing that has worked so far, ultimately the framework extension is still throwing me an error (Must have ImagicK installed).
我尝试过类似的事情:
sudo apt-get update
sudo apt-get install imagick-php5 .. etc
以及PECL安装最终导致以下错误:
as well as the PECL install which ends up throwing me the following error:
Checking ImageMagick MagickWand API configuration program... configure: error:
not found. Please provide a path to MagickWand-config or Wand-config program.
任何有关在Ubuntu 11.10上如何安装ImagicK并与PHP集成的帮助都是很好的.
Any help as to how to get ImagicK installed and integrated with PHP on Ubuntu 11.10 would be great.
提前谢谢!
推荐答案
该软件包在Ubuntu中的名称不同.
The package has a different name in Ubuntu.
sudo apt-get install php5-imagick
通过PECL构建的错误意味着您可能必须安装libmagickwand-dev, libmagickcore3, libmagickwand3
(有其他选择:graphicsmagick-imagemagick-compat
,请参见Synaptic).
The error with building via PECL means you must install libmagickwand-dev, libmagickcore3, libmagickwand3
probably (there are alternatives: graphicsmagick-imagemagick-compat
, see Synaptic).
这篇关于如何:在Ubuntu 11.10上安装Imagick(用于php)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!