I have a new dedicated server running AlmaLinux 8.7.0. ImageMagick 6.9 is installed. When I try to install the Perl module for Image::Magick, it shows version Image::Magick - latest:7.000011 and can't install it. It gets errors at the end:
It appears to be trying to install an ImageMagick 7 Perl module but when I run convert --version, I see that 6.9 is installed. How can I get the ImageMagick Perl module installed successfully?
Thanks!
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.0.11\" -DXS_VERSION=\"7.0.11\" -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
It appears to be trying to install an ImageMagick 7 Perl module but when I run convert --version, I see that 6.9 is installed. How can I get the ImageMagick Perl module installed successfully?
Thanks!