Centos

在 CentOS 8 上安裝 ImageMagick-devel 失敗

  • December 10, 2021

我正在嘗試在我的 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

知道如何解決這個問題嗎?

您需要啟用 PowerTools 儲存庫。作為根:

yum config-manager --set-enabled PowerTools

dnf config-manager --set-enabled PowerTools

其中任何一個都可以yum重定向到dnf. 所有這些依賴項都由 PowerTools 儲存庫提供。

您需要啟用 powertools

sudo dnf install epel-release
sudo dnf config-manager --set-enabled powertools

對於一些

sudo dnf config-manager --set-enabled PowerTools

有效,但對我不起作用

之後它應該安裝

引用自:https://serverfault.com/questions/992367