Skip to main content

PECL ImageMagick install fails

Comments

15 comments

  • cPRex Jurassic Moderator
    Hey there! What version of PHP do you have setup as the default version on the server? I know there are some upstream issues with PHP 8 and this specific pecl at this time.
    0
  • monkey64
    Hey there! What version of PHP do you have setup as the default version on the server? I know there are some upstream issues with PHP 8 and this specific pecl at this time.

    Hi CPRex. My default PHP version is 7.4
    0
  • cPRex Jurassic Moderator
    Thanks for that information. Are you able to run "yum install ImageMagick-devel" on the system?
    0
  • monkey64
    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: :( 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)
    0
  • cPRex Jurassic Moderator
    Alright......last thought, what about this command: dnf -y install ImageMagick-devel
    Is that also not working?
    0
  • monkey64
    Alright......last thought, what about this command: dnf -y install ImageMagick-devel
    Is that also not working?

    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. :(
    0
  • cPRex Jurassic Moderator
    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.
    0
  • monkey64
    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.
    0
  • cPRex Jurassic Moderator
    Thanks for that - I'm following along now on my end.
    0
  • cPRex Jurassic Moderator
    Update - it looks like we were able to help get that powertools repository enabled, and then things installed normally, so this is a requirement to get this working.
    0
  • BlueSteam
    @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? [QUOTE] [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 ~]#
    0
  • cPRex Jurassic Moderator
    @BlueSteam - the previous user had the powertools repo disabled. You can check that value inside /etc/yum.repos.d/almalinux-powertools.repo to see if that repository is enabled for disabled, and if that is the same problem, enabling it should also resolve your issue.
    0
  • BlueSteam
    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 [QUOTE] [root@sv01 yum.repos.d]# cat almalinux-powertools.repo # almalinux-powertools.repo [powertools] name=AlmaLinux $releasever - PowerTools mirrorlist= enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux ## Sources [powertools-source] name=AlmaLinux $releasever - PowerTools Source mirrorlist= enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux ## Debuginfo [powertools-debuginfo] name=AlmaLinux $releasever - PowerTools debuginfo mirrorlist= enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux [root@sv01 yum.repos.d]#
    0
  • cPRex Jurassic Moderator
    That's a good idea! I've submitted a request for the author to get that updated.
    0
  • monkey64
    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: 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: 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: 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: [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!
    0

Please sign in to leave a comment.