我正在尝试在我的 CentOS 8.0.1905 上安装 ImageMagick-devel,但是出现以下错误:
# yum install ImageMagick-devel
Last metadata expiration check: 2:58:25 ago on Mon 18 Nov 2019 06:58:06 PM EST.
Error:
Problem: conflicting requests
- nothing provides jasper-devel needed by ImageMagick-devel-6.9.10.64-1.el8.x86_64
- nothing provides OpenEXR-devel needed by ImageMagick-devel-6.9.10.64-1.el8.x86_64
- nothing provides ghostscript-devel needed by ImageMagick-devel-6.9.10.64-1.el8.x86_64
- nothing provides lcms2-devel needed by ImageMagick-devel-6.9.10.64-1.el8.x86_64
知道如何解决这个问题吗?
答案1
您需要启用 PowerTools repo。以 root 身份:
yum config-manager --set-enabled PowerTools
dnf config-manager --set-enabled PowerTools
以上任何一种都可以重定向yum
到dnf
。所有这些依赖项均由 PowerTools repo 提供。
答案2
您需要启用 powertools
sudo dnf install epel-release
sudo dnf config-manager --set-enabled powertools
对于一些
sudo dnf config-manager --set-enabled PowerTools
有用,但对我没用
之后它应该安装