ImageMagick-libs-7.0.7-0.x86_64.rpm错误:失败的依赖项

时间:2017-09-09 08:23:09

标签: image-processing imagemagick

我尝试安装ImageMagick。但是得到以下错误:

我下载了以下内容:
wget https://www.imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-7.0.7-0.x86_64.rpm

wget https://www.imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-libs-7.0.7-0.x86_64.rpm

[root@server ~]# rpm -Uvh ImageMagick-libs-7.0.7-0.x86_64.rpm
error: Failed dependencies:
        libICE.so.6()(64bit) is needed by ImageMagick-libs-7.0.7-0.x86_64
        libSM.so.6()(64bit) is needed by ImageMagick-libs-7.0.7-0.x86_64
        libXext.so.6()(64bit) is needed by ImageMagick-libs-7.0.7-0.x86_64
        libXt.so.6()(64bit) is needed by ImageMagick-libs-7.0.7-0.x86_64
        libcairo.so.2()(64bit) is needed by ImageMagick-libs-7.0.7-0.x86_64
        libfftw3.so.3()(64bit) is needed by ImageMagick-libs-7.0.7-0.x86_64
        libgs.so.9()(64bit) is needed by ImageMagick-libs-7.0.7-0.x86_64
        liblcms2.so.2()(64bit) is needed by ImageMagick-libs-7.0.7-0.x86_64
        libltdl.so.7()(64bit) is needed by ImageMagick-libs-7.0.7-0.x86_64
        libpango-1.0.so.0()(64bit) is needed by ImageMagick-libs-7.0.7-0.x86_64
        libpangocairo-1.0.so.0()(64bit) is needed by ImageMagick-libs-7.0.7-0.x86_64
        libwmflite-0.2.so.7()(64bit) is needed by ImageMagick-libs-7.0.7-0.x86_64

我的服务器配置:

[root@server ~]# php -v 
PHP 7.0.22 (cli) (built: Aug 7 2017 16:18:27) ( NTS ) 

[root@server ~]# nginx -v 
nginx version: nginx/1.10.2

操作系统:CentOS 7.3.1611(核心)

有人可以帮助解决这些依赖关系吗?

1 个答案:

答案 0 :(得分:0)

最近我遇到了同样的问题。安装以下"

  • libICE

  • libSM

  • libXext

  • cairo

  • fftw3

卸载预装的Ghostscript i86并安装64位版本:

yum install ghostscript

yum install lcms2

yum install libwmf-lite

安装上述依赖项后,您应该看到转换魔法