安装imagick时出错

时间:2011-12-29 06:22:19

标签: php cpanel whm

我正在尝试在whm中安装imagemagick和imagick模块。我安装了imagemagick没有任何问题,但是当通过whm安装imagick时,我收到以下错误:

downloading imagick-3.0.1.tgz ...
Starting to download imagick-3.0.1.tgz (Unknown size)
....done: 3,582 bytes
Could not get contents of package "/root/tmp/pear/cache/imagick-3.0.1.tgz". Invalid tgz file.
Download of "pecl/imagick" succeeded, but it is not a valid package archive
Error: cannot download "pecl/imagick"
Download failed
install failed
The imagick.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20090626

有人可以帮忙吗?

2 个答案:

答案 0 :(得分:2)

看起来http://pecl.php.net已关闭了!所以我做的是从谷歌代码网站下载包并手动安装。

cd /usr/src/
wget http://acelnmp.googlecode.com/files/imagick-3.0.1.tgz
tar -xvf imagick-3.0.1.tgz
cd imagick-3.0.1
phpize
./configure
make
make install

然后在php.ini上添加了扩展并重新启动了服务器:

echo "extension=imagick.so" >> /usr/local/lib/php.ini 
service httpd restart

答案 1 :(得分:0)

原来我没有安装make。尝试:

yum groupinstall“开发工具”