cant find imagemagick after centos update

simpel

Verified User
Joined
Jun 6, 2019
Messages
24
Hey gang,

i'm getting errors with php:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php71/lib/php/extensions/no-debug-non-zts-20160303/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
i think centos had a minor release update and replaced old imagemagick with a newer version and i have no clue how to fix this.

also tried recompiling php but same error.


Code:
# yum provides libMagickWand.so.5
No matches found

# locate libMagickWand
/usr/lib64/libMagickWand-6.Q16.so
/usr/lib64/libMagickWand-6.Q16.so.6
/usr/lib64/libMagickWand-6.Q16.so.6.0.0

# yum provides libMagickWand-6.Q16.so.6
ImageMagick-6.9.10.68-3.el7.i686 : An X application for displaying and manipulating images
Repo        : base
Matched from:
Provides    : libMagickWand-6.Q16.so.6
any suggestions?
 

Zhenyapan

Verified User
Joined
Feb 23, 2018
Messages
403
Location
UA
You need to reinstall imagick for PHP, after update it has another version.
 

simpel

Verified User
Joined
Jun 6, 2019
Messages
24
You need to reinstall imagick for PHP, after update it has another version.
this server was already configured before i had to deal with it.

i cant find how to properly install it for directadmin compile process.

most forums say you need to use pecl but it is deprecated... also php-pear package is removed from centos 7.
 

Zhenyapan

Verified User
Joined
Feb 23, 2018
Messages
403
Location
UA
pecl not deprecated, maybe you have some special config
you may use phpize and build it from sources (also exclude from yum)
---
also you can use custombuild:
./build imagemagick
./build php_imagick
(also exclude them from yum)
 

simpel

Verified User
Joined
Jun 6, 2019
Messages
24
pecl not deprecated, maybe you have some special config
you may use phpize and build it from sources (also exclude from yum)
---
also you can use custombuild:
./build imagemagick
./build php_imagick
(also exclude them from yum)
thx, that worked!
 
Top