Skip to main content

CPANEL-42184 - Can't install ImageMagick Perl module on AlmaLinux 8

Comments

15 comments

  • cPRex Jurassic Moderator
    Hey there! This looks like an actual issue with the perlinstaller tool detecting the wrong version. I'll get a case opened with our developers in just a bit!
    0
  • swbrains
    Thanks so much!
    0
  • cPRex Jurassic Moderator
    I created case CPANEL-42184 with our developers, and I'll be sure to post once I hear something!
    0
  • johnsteel
    I wondered if there was any update on this as I still have the same issue. Thanks.
    0
  • cPRex Jurassic Moderator
    Let me reach out to the team and I'll get back to you!
    0
  • cPRex Jurassic Moderator
    Our devs are exploring a few different options right now. I can't say what the ultimate plan is for this since that hasn't been decided, but they are working on the issue.
    0
  • swbrains
    My server admins were able to install IM directly on the server so I have access to the command-line tools, but the Perl interface would be nicer to have. I was able to modify my scripts for now to call out (shell) to the command-tools like "convert" to do the image resizing/flipping, etc. that I needed. Luckily I was only using a few functions so it wasn't a major hassle for me.
    0
  • Steini Petur

    Hey @cpRex was this ever resolved, I am in the similar boat and tis 2024, my Alma is 8 or actually Cloudlinux 8 and when "Image::Magick" is being searched it finds 7 while convert shows 6.9 and fails exactly the same

    gcc -c -I/usr/local/include/ImageMagick-7 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/libxml2 -I"/usr/include/ImageMagick-7" -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/freetype2 -g -O2 -Wall -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -g -DVERSION=\"7.1.1\" -DXS_VERSION=\"7.1.1\" -fPIC "-I/usr/lib64/perl5/CORE" -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c FAIL cpanminus failed with non-zero exit status: 1 All available perl module install methods have failed 

    Is there a solution to this?

    0
  • Steini Petur

    I have also tesed CL9.4 and the same results ImageMagick 7.1.1.. fails Ive installed every single dependency known to man.

    0
  • cPRex Jurassic Moderator

    Steini Petur - I think there's two issues going on here.  The first issue is that "convert" is linked to the ImageMagick library, which should be showing version 6.9.  Imagick is the PECL tool, which will show a different version number.

    As far as the installation error, have you already installed ImageMagick on the machine with the details here? https://support.cpanel.net/hc/en-us/articles/360037048673-How-to-Install-ImageMagick-for-EA-PHP

    0
  • Steini Petur

    cPRex I have done all of that, I have full support for Imagick on every EA PHP I actually have no issues with the PHP side of it, its this

    https://somup.com/cZlhnRJPn5

    I even checked all the required and even any dependency I may think of, all version of PHP except 8.3 at this time have imagick 

     

    [root@esja ~]# /opt/cpanel/ea-php56/root/usr/bin/php -m | grep "imagick"
    imagick
    [root@esja ~]# /opt/cpanel/ea-php70/root/usr/bin/php -m | grep "imagick"
    imagick
    [root@esja ~]# /opt/cpanel/ea-php71/root/usr/bin/php -m | grep "imagick"
    imagick
    [root@esja ~]# /opt/cpanel/ea-php72/root/usr/bin/php -m | grep "imagick"
    imagick
    [root@esja ~]# /opt/cpanel/ea-php73/root/usr/bin/php -m | grep "imagick"
    imagick
    [root@esja ~]# /opt/cpanel/ea-php74/root/usr/bin/php -m | grep "imagick"
    imagick
    [root@esja ~]# /opt/cpanel/ea-php80/root/usr/bin/php -m | grep "imagick"
    imagick
    [root@esja ~]# /opt/cpanel/ea-php81/root/usr/bin/php -m | grep "imagick"
    imagick
    [root@esja ~]# /opt/cpanel/ea-php82/root/usr/bin/php -m | grep "imagick"
    imagick

    It's only this "Perl" version which one of our client wanted to enable that fails, no matter the dependencies installation, he has no issue with the PHP side of using imagick. It does the same as this guy here, fails during the installation of Imagick 7.1.1 Perl side of it.

    0
  • cPRex Jurassic Moderator

    Thanks for that video - that's exactly what I needed to see.

    As far as I know, that isn't available in cPanel.  You would need to use the Module Installers for PHP PECL page as outlined in step 5 here:

    https://support.cpanel.net/hc/en-us/articles/360037048673-How-to-Install-ImageMagick-for-EA-PHP

    instead of the Perl Modules option to get that installed.  Can you try that instead?

    0
  • Steini Petur

    Hi cPRex

    So by that you mean only PHP version of the Imagick is available, installing it for the Perl is not possible, as those two are completely separate things one is for a perl script, other is for a php script use.

    The client in question is working in perl

    https://metacpan.org/pod/Image::Magick

    So this is not possible in cPanel correct, the reason we need this confirmed is so that the client who is most likely following exactly this thread here, will see the outcome of this. Same as the OP was requesting assistance with.

    We have EA-PHP all nailed down, imagick is wide open for every PHP version, its just the PERL that is the issue.

    0
  • Steini Petur

    From what I gather, most people running into this, I tried cpanel install found "fatal error: MagickCore" no such file or folder, turns out most people say 

    https://askubuntu.com/questions/627128/cant-install-cpan-module-imagemagick

    Compile from source, but then its now gone outside the usecase as we're not compiling from source for all our WHM nodes, if this is not something that is easily accessible using the "module installer" in WHM then this is no longer a discussion on shared.

    0
  • cPRex Jurassic Moderator

    That is correct - we don't provide a way to install that on our end directly into Perl.  You may still be able to do that manually, but it's not something that is supported.

    0

Please sign in to leave a comment.