I
I
Igor Ivanov2020-07-01 18:19:12
linux
Igor Ivanov, 2020-07-01 18:19:12

ImageMagick® - problem after building from source?

Good afternoon.

OS - CentOS 7. PHP - as an Apache module. Decided to try using ImageMagick® to support conversion to *.webp for one WordPress plugin. I installed the package first, then I saw that there was no built-in support for this format and decided to compile from source (followed the instructions, link: https://www.linuxhelp.com/how-to-compile-imagemagi... It came together well, when checking php -m | grep imagickoutput was "imagick", but in "imagick.ini" I had extension=imagick.so(ImageMagick-6.9.10) and since I rebuilt ImageMagick® (ImageMagick 7.0.10-22 Q16 x86_64) I needed to specify another dynamic library file, namely "libMagickCore-7.Q16HDRI.so.7.0.0" This file was originally in the directory "/usr/local/lib/"PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/libMagickCore-7.Q16HDRI.so.7' - /usr/lib64/php/modules/libMagickCore-7.Q16HDRI.so.7 : cannot open shared object file: No such file or directory in Unknown on line 0 ". I don't know if this is possible, but I moved the library file to the directory that PHP expects to see. And now when I type, php -m | grep imagickI get: " PHP Warning : PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/libMagickCore-7.Q16HDRI.so.7.0.0' - /usr/lib64/php/modules/libMagickCore-7.Q16HDRI.so.7.0 .0: undefined symbol: DrawPathStart in Unknown on line 0 ". Tell me, pls, what is wrong here.

UPD This command ldconfig /usr/lib64/php/modules/output the following:
"ldconfig: Can't link /usr/lib64/php/modules/libMagickCore-7.Q16HDRI.so.7 to libMagickCore-7.Q16HDRI.so.7.0.0
ldconfig: Can't create temporary cache file /etc/ld. so.cache~: Permission denied
".

Disclaimer: I consider myself a Linux beginner, so this may seem easy to you, but not to me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Ivanov, 2020-07-01
@PlugIN

Fellow developers, the issue has been resolved) It was necessary to do what I myself wrote in the commentary. Reinstalled "imagick": pecl install imagick, specified in "imagick.ini": extension=imagick.so. Maybe I forgot to mention something, maybe I'll add it later.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question