简体   繁体   English

在Amazon Linux Docker映像上以rpm安装ImageMagick时发生依赖项错误

[英]Dependencies error while installing ImageMagick with rpm on amazonlinux docker image

I have been trying to resolve the dependencies issues since two days. 自两天以来,我一直在尝试解决依赖性问题。 So I am trying to build the docker image using amazonlinux as a base image. 所以我正在尝试使用amazonlinux作为基础映像来构建docker映像。 I want to install ImageMagick. 我想安装ImageMagick。 When I use yum install it installs the version 6.7.8, which installs properly but this is not the version I want. 当我使用yum install时,它将安装版本6.7.8,该版本可以正确安装,但这不是我想要的版本。 I specifically want 6.9.9 version. 我特别想要6.9.9版本。 I have downloaded the rpm file and trying to install the ImageMagick rpm and ImageMagick-devel rpm using the below command. 我已经下载了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

But even after installing both imagemagick and imagemagick-devel, i am running into dependencies error. 但是即使同时安装了imagemagick和imagemagick-devel,我也遇到了依赖项错误。 This is really frustating! 这真令人沮丧!

: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

Please note I am not trying to install the latest imagicmagick 7 as it is not compatible with wand, i am trying to install this particular 6.9.9 version. 请注意,我不尝试安装最新的imagicmagick 7,因为它与魔杖不兼容,我正在尝试安装此特定的6.9.9版本。 Any help will be appreciated. 任何帮助将不胜感激。

I used another image altogether which is fedora:rawhide. 我总共使用了另一个图像,即fedora:rawhide。 It contains latest python3 and latest ImageMagick. 它包含最新的python3和最新的ImageMagick。 For my service, i needed the latest one and amazonlinux did not have the latest ImageMagick which was why I was manually installing using rpm. 对于我的服务,我需要最新的,而amazonlinux没有最新的ImageMagick,这就是为什么我使用rpm手动安装的原因。 I used the fedora image and now i can just use yum install ImageMagick and yum install ImageMagick-devel and the problem is resolved. 我使用了fedora映像,现在我可以使用yum安装ImageMagick和yum安装ImageMagick-devel,问题已解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM