[BlueOnyx:23804] Re: Problem with ImageMagick!! - Update of ImageMagick

Gerrit Haas Gerrit.Haas at blackpoint.de
Tue Apr 28 04:09:11 -05 2020


Hi all,
quick shellscript:

#!/bin/bash
#check if error exists
for i in $(ls /home/solarspeed/*/bin/php);
do $i -v >>/root/phptest.log 2>> /root/phptest2.log ;
done

if grep -sq "libMagickWand" /root/phptest2.log
then
    printf "php defective, fixing.\n"
	ln -s /usr/lib64/libMagickWand-6.Q16.so.6.0.0 /usr/lib64/libMagickWand.so.5
	ln -s /usr/lib64/libMagickWand-6.Q16.so.6.0.0 /usr/lib64/libMagickWand.so.5.0.0
	ln -s /usr/lib64/libMagickCore-6.Q16.so.6.0.0 /usr/lib64/libMagickCore.so.5
	ln -s /usr/lib64/libMagickCore-6.Q16.so.6.0.0 /usr/lib64/libMagickCore.so.5.0.0
else
    printf "php intact. doing nothing.\n"
fi

#cleanup
rm /root/phptest2.log
rm /root/phptest.log

Mit freundlichen Grüßen aus Bad Vilbel 

Gerrit Haas 
Systemadministrator   

 
blackpoint GmbH - Friedberger Straße 106b - 61118 Bad Vilbel 

Tel.: +49 6101 65788 32 
IT-Support: +49 6101 65788 - 30 
Fax: +49 6101 65788 - 99 
eMail: Gerrit.Haas at blackpoint.de 
Tel. Rufbereitschaft (Außerhalb der Arbeitszeiten) +49 6101 65788 - 40 

Vertretungsberechtigt Dirk Estenfeld und Mario Di Rienzo HRB 50093 Frankfurt am Main USt.-IdNr. de210106871 

Besuchen Sie uns im Internet unter http://www.blackpoint.de
Problemlos Domains registrieren: http://www.edns.de
Einfach und günstig Daten sichern: https://www.blackpoint.de/produkte/hosting/weitere-cloud-dienste/veeam-cloud-connect/

Mitglied im:    
  
  


Confidentiality Notice: 
This e-mail message, including any attachments,is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. 
Von: Blueonyx <blueonyx-bounces at mail.blueonyx.it> Im Auftrag von Dirk Estenfeld
Gesendet: Dienstag, 28. April 2020 10:30
An: BlueOnyx General Mailing List <blueonyx at mail.blueonyx.it>
Betreff: [BlueOnyx:23803] Problem with ImageMagick!! - Update of ImageMagick

Good morning,

this morning came with the updates an update for CentOS7 to CentOS Linux release 7.8.2003 (Core)
As it looks like, ImageMagick was updated as well. All PHP versions built by Michael/Solarspeed/Blueonyx show an error message since this morning:

/home/solarspeed/php-7.2/bin/php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/home/solarspeed/php-7.2/lib/php/20170718/imagick.so' (tried: /home/solarspeed/php-7.2/lib/php/20170718/imagick.so (libMagickCo                     re.so.5: cannot open shared object file: No such file or directory), /home/solarspeed/php-7.2/lib///home/solarspeed/php-7.2/lib/php/20170718/imagick.so.so (/home/solarspeed/php-7.2/lib//                     /home/solarspeed/php-7.2/lib/php/20170718/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

/home/solarspeed/php-7.3/bin/php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/home/solarspeed/php-7.3/lib/php/20180731/imagick.so' (tried: /home/solarspeed/php-7.3/lib/php/20180731/imagick.so (libMagickWa                     nd.so.5: cannot open shared object file: No such file or directory), /home/solarspeed/php-7.3/lib///home/solarspeed/php-7.3/lib/php/20180731/imagick.so.so (/home/solarspeed/php-7.3/lib//                     /home/solarspeed/php-7.3/lib/php/20180731/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

/home/solarspeed/php-7.1/bin/php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/home/solarspeed/php-7.1/lib/php/20160303/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0


The reason is that the /home/solarspeed/php-*/lib/php/*/imagick.so is build against 

libMagickCore.so.5.0.0
libMagickWand.so.5.0.0

However since the version upgrade of CentOS only the following files are available:

libMagickCore-6.Q16.so.6.0.0
libMagickWand-6.Q16.so.6.0.0

It makes no differences if I use an old Michael/Solarspeed/Blueonyx PHP Version or the latest pkg-file.

There is a dirty fix for this problem:

ln -s /usr/lib64/libMagickWand-6.Q16.so.6.0.0 /usr/lib64/libMagickWand.so.5
ln -s /usr/lib64/libMagickWand-6.Q16.so.6.0.0 /usr/lib64/libMagickWand.so.5.0.0

ln -s /usr/lib64/libMagickCore-6.Q16.so.6.0.0 /usr/lib64/libMagickCore.so.5
ln -s /usr/lib64/libMagickCore-6.Q16.so.6.0.0 /usr/lib64/libMagickCore.so.5.0.0

After this the imagick.so module is working agian.
I have no idea if this have some side effects however it should work until Michael will rebuild the imagick.so against the new version of ImageMagick or will find some other way to work around.

Best regards,
Dirk


 
blackpoint GmbH - Friedberger Straße 106b - 61118 Bad Vilbel 





More information about the Blueonyx mailing list