SOLVED PECL ImageMagick install fails

monkey64

Well-Known Member
Nov 6, 2011
124
5
68
cPanel Access Level
Root Administrator
I'm having trouble installing Imagick through PECL (Home->Software->Module Installers). BTW - I'm on AlmaLinux 8.4, WHM v 98.06.
Here is the error:

Code:
Last metadata expiration check: 3:19:02 ago on Fri Aug 27 15:48:54 2021.
Error:
Problem: conflicting requests
  - nothing provides OpenEXR-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
  - nothing provides jasper-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
  - nothing provides ghostscript-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
  - nothing provides lcms2-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candid
ate packages)
[ERROR] Failed to ensure ImageMagick-devel RPM for imagick PECL
It seems that the the Imagick server component was already installed:

Code:
yum install ImageMagick
Last metadata expiration check: 3:32:48 ago on Fri 27 Aug 2021 03:48:54 PM UTC.
Package ImageMagick-6.9.10.86-1.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
I searched around and this post mentions installing the PowerTools repo

Code:
yum config-manager --set-enabled PowerTools
dnf config-manager --set-enabled PowerTools
However when I tried either of these commands I got this error:

Code:
Error: No matching repo to modify: PowerTools.
Can anyone help?
 

monkey64

Well-Known Member
Nov 6, 2011
124
5
68
cPanel Access Level
Root Administrator
Thanks for that information. Are you able to run "yum install ImageMagick-devel" on the system?
Running "yum install ImageMagick-devel" gives me a similar error unfortunately: :(

Code:
yum install ImageMagick-devel
Last metadata expiration check: 0:06:41 ago on Fri 27 Aug 2021 07:45:35 PM UTC.
Error:
 Problem: conflicting requests
  - nothing provides OpenEXR-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
  - nothing provides jasper-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
  - nothing provides ghostscript-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
  - nothing provides lcms2-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
 

monkey64

Well-Known Member
Nov 6, 2011
124
5
68
cPanel Access Level
Root Administrator
Alright......last thought, what about this command:

Code:
dnf -y install ImageMagick-devel
Is that also not working?
Code:
dnf -y install ImageMagick-devel
Last metadata expiration check: 0:35:34 ago on Fri 27 Aug 2021 07:45:35 PM UTC.
Error:
 Problem: conflicting requests
  - nothing provides OpenEXR-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
  - nothing provides jasper-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
  - nothing provides ghostscript-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
  - nothing provides lcms2-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
I still get the same error. :(
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,585
2,613
363
cPanel Access Level
Root Administrator
It sounds like there is something missing in the operating system that is keeping those packages from being downloaded. It might be best to submit a ticket to our team so we can see if there is a larger problem happening rather than just an isolated issue with your system.

If you are able to submit a ticket, please post the number here so I can follow along and make sure this thread stays updated.
 

monkey64

Well-Known Member
Nov 6, 2011
124
5
68
cPanel Access Level
Root Administrator
It sounds like there is something missing in the operating system that is keeping those packages from being downloaded. It might be best to submit a ticket to our team so we can see if there is a larger problem happening rather than just an isolated issue with your system.

If you are able to submit a ticket, please post the number here so I can follow along and make sure this thread stays updated.
The ticket is #94357385. Thanks for your help.
 

BlueSteam

Well-Known Member
Feb 21, 2013
129
23
68
cPanel Access Level
Reseller Owner
@cPRex I have the EXACT same issue and I am also on AlmaLinux 8.4. Tried all the commands on this thread and they all give me the EXACT same errors as the OP.

Care to share the solution perhaps?

[root@sv01 ~]# dnf install ImageMagick ImageMagick-devel
Last metadata expiration check: 1:24:11 ago on Mon 30 Aug 2021 19:43:52 SAST.
Package ImageMagick-6.9.10.86-1.el8.x86_64 is already installed.
Error:
Problem: conflicting requests
- nothing provides OpenEXR-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
- nothing provides jasper-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
- nothing provides ghostscript-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
- nothing provides lcms2-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@sv01 ~]# yum install ImageMagick-devel
Last metadata expiration check: 1:25:05 ago on Mon 30 Aug 2021 19:43:52 SAST.
Error:
Problem: conflicting requests
- nothing provides OpenEXR-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
- nothing provides jasper-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
- nothing provides ghostscript-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
- nothing provides lcms2-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@sv01 ~]# dnf -y install ImageMagick-devel
Last metadata expiration check: 1:25:17 ago on Mon 30 Aug 2021 19:43:52 SAST.
Error:
Problem: conflicting requests
- nothing provides OpenEXR-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
- nothing provides jasper-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
- nothing provides ghostscript-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
- nothing provides lcms2-devel needed by ImageMagick-devel-6.9.10.86-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@sv01 ~]#
 
Last edited:

BlueSteam

Well-Known Member
Feb 21, 2013
129
23
68
cPanel Access Level
Reseller Owner
Thanks cPRex,

Checking the file shows that it is definitely disabled. Enabling this has sorted the problem out :-D Thanks cPRex!!

With AlmaLinux being so new on the block for cPanel, maybe this cPanel doc (How to Install ImageMagick for EA-PHP and ALT-PHP) can be updated to include this as a step to get it working:

This was the output of the almalinux-powertools.repo

[root@sv01 yum.repos.d]# cat almalinux-powertools.repo
# almalinux-powertools.repo

[powertools]
name=AlmaLinux $releasever - PowerTools
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/powertools
# baseurl=https://repo.almalinux.org/almalinux/$releasever/PowerTools/$basearch/os/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux

## Sources
[powertools-source]
name=AlmaLinux $releasever - PowerTools Source
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/powertools-source
# baseurl=https://repo.almalinux.org/almalinux/$releasever/PowerTools/Source/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux

## Debuginfo
[powertools-debuginfo]
name=AlmaLinux $releasever - PowerTools debuginfo
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/powertools-debuginfo
# baseurl=https://repo.almalinux.org/almalinux/$releasever/PowerTools/debug/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
[root@sv01 yum.repos.d]#
 

monkey64

Well-Known Member
Nov 6, 2011
124
5
68
cPanel Access Level
Root Administrator
This is exactly what the technician did to install Imagick through PECL (I'm quoting from the ticket):

Thank you for your patience while I reviewed this further.
Your server did not have the "powertools" repository enabled which provides these packages:

Code:
08:59:57 li622-215 root@1234556~]cPs# cat /etc/yum.repos.d/almalinux-powertools.repo
# almalinux-powertools.repo

[powertools]
name=AlmaLinux $releasever - PowerTools
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/powertools
# baseurl=https://repo.almalinux.org/almalinux/$releasever/PowerTools/$basearch/os/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
As you can see, this repository is disabled due to:

Code:
enabled=0
On AlmaLinux, the "PowerTools" repository is simply named "powertools"; please note the change to all lowercase. The repository can therefore be enabled via:

Code:
yum config-manager --set-enabled powertools
I have enabled this repository for you at this time.
Following this, I was able to perform the installation of the ImageMagick-devel package required for the IMagick extension:

Code:
[09:05:04 li622-215 root@94357385 ~]cPs# yum install ImageMagick-devel
Last metadata expiration check: 0:01:35 ago on Sat 28 Aug 2021 09:04:02 AM UTC.
Dependencies resolved.
...
Installed:
ImageMagick-devel-6.9.10.86-1.el8.x86_64 OpenEXR-devel-2.2.0-12.el8.x86_64 gl-manpages-1.1-15.20161227.el8.noarch ilmbase-devel-2.2.0-13.el8.x86_64 jasper-devel-2.0.14-4.el8.x86_64 lcms2-devel-2.9-2.el8.x86_64 libICE-devel-1.0.9-15.el8.x86_64
libSM-devel-1.2.3-1.el8.x86_64 libXext-devel-1.3.4-1.el8.x86_64 libXt-devel-1.1.5-12.el8.x86_64 libdrm-2.4.103-1.el8.x86_64 libglvnd-1:1.3.2-1.el8.x86_64 libglvnd-core-devel-1:1.3.2-1.el8.x86_64 libglvnd-devel-1:1.3.2-1.el8.x86_64
libglvnd-egl-1:1.3.2-1.el8.x86_64 libglvnd-gles-1:1.3.2-1.el8.x86_64 libglvnd-glx-1:1.3.2-1.el8.x86_64 libglvnd-opengl-1:1.3.2-1.el8.x86_64 libgs-devel-9.27-1.el8.x86_64 libpciaccess-0.14-1.el8.x86_64 libwayland-client-1.17.0-1.el8.x86_64
libwayland-server-1.17.0-1.el8.x86_64 libxshmfence-1.3-2.el8.x86_64 mesa-libEGL-20.3.3-2.el8.x86_64 mesa-libGL-20.3.3-2.el8.x86_64 mesa-libGLU-9.0.0-15.el8.x86_64 mesa-libGLU-devel-9.0.0-15.el8.x86_64 mesa-libgbm-20.3.3-2.el8.x86_64
mesa-libglapi-20.3.3-2.el8.x86_64

Complete!