【问题标题】:Error while installing imagick安装imagick时出错
【发布时间】:2012-01-29 16:20:36
【问题描述】:

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

有人可以帮忙吗?

【问题讨论】:

  • 只是为了确定......你在 linux 上工作,对吗?

标签: php cpanel whm


【解决方案1】:

看起来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

【讨论】:

  • with whm,可能需要先用/scripts/installimagemagick安装ImageMagick
  • 巨大的帮助! Pecl 似乎仍在运行,但由于某种原因,我遇到了同样的错误。我刚刚运行了您的代码,它运行良好。你摇滚!!
【解决方案2】:

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

yum groupinstall "开发工具"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-01-23
    • 1970-01-01
    • 2021-07-29
    • 2014-02-06
    • 1970-01-01
    • 2014-01-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多