Control Web Panel
WebPanel => CentOS 8 Problems => Topic started by: uma on April 28, 2025, 08:23:21 AM
-
Hi,
php -v giving error of unable to load dynamic library 'imagick.so'
Tried to install with sh /scripts/install_imagick
but it exit with error Imagick NOT Installed !
So I run script line by line
following lines executed successfully
yum -y install ImageMagick ImageMagick-devel ImageMagick-perl
cd /usr/local/src
rm -Rf imagick-3.1.0RC2
rm -Rf imagick-3.1.0RC2.tgz
wget http://static.cdn-cwp.com/files/php/pecl/imagick-3.1.0RC2.tgz
tar zxf imagick-3.1.0RC2.tgz
cd imagick-3.1.0RC2
phpize
but found that following line not working:
ln -s /usr/local/include/ImageMagick-6 /usr/local/include/ImageMagick
On checking, I didnot found any folder /usr/local/include/ImageMagick-6 in my Almalinux ver 8
after that I run ./configure which exit with error:
checking for MagickWand.h header file... configure: error: Cannot locate header file MagickWand.h
It seems error due to path.
(https://prnt.sc/DsveGt3IKtYN)
path: https://prnt.sc/DsveGt3IKtYN
Regards,
-
I replied to your other post, too. Probably best to create a new thread like this for the modern OSes rather than resurrect a zombie thread like that for CentOS 7. Under AlmaLinux 8/9, it should go something like this:
dnf update -y
dnf install epel-release -y
dnf install ImageMagick ImageMagick-devel -y
dnf install php php-devel php-pear -y
pecl install imagick
[Add the extension "extension=imagick.so" to your desired PHP configuration -- php.ini]
systemctl restart httpd
systemctl restart php-fpmXX
-
Hi,
php -v giving error of unable to load dynamic library 'imagick.so'
(...)
but found that following line not working:
ln -s /usr/local/include/ImageMagick-6 /usr/local/include/ImageMagick
On checking, I didnot found any folder /usr/local/include/ImageMagick-6 in my Almalinux ver 8
(...)
I think the right command is:
ln -s /usr/include/ImageMagick-6 /usr/local/include/ImageMagick-6
The include library exists in '/usr/include/ImageMagick-6' in AL8.
Regards,
Netino