【问题标题】:Dependencies error while installing ImageMagick with rpm on amazonlinux docker image在 amazonlinux docker 映像上使用 rpm 安装 ImageMagick 时出现依赖项错误
【发布时间】:2019-05-16 02:33:48
【问题描述】:

两天以来,我一直在尝试解决依赖关系问题。所以我正在尝试使用 amazonlinux 作为基础镜像来构建 docker 镜像。我想安装 ImageMagick。当我使用 yum install 时,它会安装 6.7.8 版本,它可以正确安装,但这不是我想要的版本。我特别想要6.9.9版本。我已经下载了 rpm 文件并尝试使用以下命令安装 ImageMagick rpm 和 ImageMagick-devel rpm。

RUN rpm -Uvh --nodeps ImageMagick-6.9.9.38-1.fc28.x86_64.rpm ImageMagick-devel-6.9.9.38-1.fc28.x86_64.rpm

但即使在安装了 imagemagick 和 imagemagick-devel 之后,我还是遇到了依赖项错误。这真是令人沮丧!

:ImageMagick-6.9.9.38-1.fc28.x86_64 has missing requires of libICE.so.6()(64bit)
1:ImageMagick-6.9.9.38-1.fc28.x86_64 has missing requires of libSM.so.6()(64bit)
1:ImageMagick-6.9.9.38-1.fc28.x86_64 has missing requires of libX11.so.6()(64bit)
1:ImageMagick-6.9.9.38-1.fc28.x86_64 has missing requires of libXext.so.6()(64bit)
1:ImageMagick-6.9.9.38-1.fc28.x86_64 has missing requires of libXt.so.6()(64bit)
1:ImageMagick-6.9.9.38-1.fc28.x86_64 has missing requires of libfftw3.so.3()(64bit)
1:ImageMagick-6.9.9.38-1.fc28.x86_64 has missing requires of libfontconfig.so.1()(64bit)
1:ImageMagick-6.9.9.38-1.fc28.x86_64 has missing requires of libfreetype.so.6()(64bit)
1:ImageMagick-6.9.9.38-1.fc28.x86_64 has missing requires of libgomp.so.1()(64bit)
1:ImageMagick-6.9.9.38-1.fc28.x86_64 has missing requires of liblcms2.so.2()(64bit)
1:ImageMagick-6.9.9.38-1.fc28.x86_64 has missing requires of libltdl.so.7()(64bit)
1:ImageMagick-devel-6.9.9.38-1.fc28.x86_64 has missing requires of /usr/bin/pkg-config
1:ImageMagick-devel-6.9.9.38-1.fc28.x86_64 has missing requires of OpenEXR-devel
1:ImageMagick-devel-6.9.9.38-1.fc28.x86_64 has missing requires of bzip2-devel
1:ImageMagick-devel-6.9.9.38-1.fc28.x86_64 has missing requires of freetype-devel
1:ImageMagick-devel-6.9.9.38-1.fc28.x86_64 has missing requires of jasper-devel
1:ImageMagick-devel-6.9.9.38-1.fc28.x86_64 has missing requires of lcms2-devel
1:ImageMagick-devel-6.9.9.38-1.fc28.x86_64 has missing requires of libX11-devel
1:ImageMagick-devel-6.9.9.38-1.fc28.x86_64 has missing requires of libXext-devel
1:ImageMagick-devel-6.9.9.38-1.fc28.x86_64 has missing requires of libXt-devel
1:ImageMagick-devel-6.9.9.38-1.fc28.x86_64 has missing requires of libgs-devel
1:ImageMagick-devel-6.9.9.38-1.fc28.x86_64 has missing requires of libjpeg-devel
1:ImageMagick-devel-6.9.9.38-1.fc28.x86_64 has missing requires of libtiff-devel
1:ImageMagick-devel-6.9.9.38-1.fc28.x86_64 has missing requires of libwebp-devel
1:ImageMagick-devel-6.9.9.38-1.fc28.x86_64 has missing requires of pkgconfig

请注意,我没有尝试安装最新的 imagicmagick 7,因为它与 wand 不兼容,我正在尝试安装这个特定的 6.9.9 版本。任何帮助将不胜感激。

【问题讨论】:

  • 我对在亚马逊上安装了解不多,但是为什么你的安装中有--nodeps。我希望这意味着不要安装任何依赖项。而且您的错误消息表明您缺少很多依赖项。尝试删除 --nodeps 并重新编译。
  • 不走运!仍然遇到依赖错误。当我手动尝试安装这些依赖项时,它会给出更多错误。只是无限的错误!
  • 对不起,我对亚马逊 docker 了解不多

标签: python docker dependencies imagemagick


【解决方案1】:

我完全使用了另一个图像,它是 fedora:rawhide。它包含最新的 python3 和最新的 ImageMagick。对于我的服务,我需要最新的,而 amazonlinux 没有最新的 ImageMagick,这就是我使用 rpm 手动安装的原因。我使用了 fedora 映像,现在我可以使用 yum install ImageMagick 和 yum install ImageMagick-devel 并解决问题。

【讨论】:

  • 这是一个答案吗?如果是这样,它是否有效。是图像问题还是 ImageMagick 或 Python 问题?请说清楚。您的帖子不是很清楚,应该包含更多详细信息。
猜你喜欢
  • 2015-10-14
  • 2020-01-25
  • 1970-01-01
  • 2020-02-19
  • 2010-10-26
  • 2011-11-18
  • 1970-01-01
  • 1970-01-01
  • 2018-12-03
相关资源
最近更新 更多