php / php-src

The PHP Interpreter
https://www.php.net
Other
38.27k stars 7.76k forks source link

Unable to load dynamic library 'imagick.so' #16895

Closed yauhenko closed 9 hours ago

yauhenko commented 10 hours ago

Description

The following code:

# add-apt-repository ppa:ondrej/php
# apt install php8.4-fpm php8.4-imagick
# php -v

Resulted in this output:

# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/lib/php/20240924/imagick.so (/usr/lib/php/20240924/imagick.so: undefined symbol: php_strtolower), /usr/lib/php/20240924/imagick.so.so (/usr/lib/php/20240924/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 8.4.1 (cli) (built: Nov 21 2024 14:54:00) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.4.1, Copyright (c) Zend Technologies
    with Zend OPcache v8.4.1, Copyright (c), by Zend Technologies

But I expected this output instead:

PHP 8.4.1 (cli) (built: Nov 21 2024 14:54:00) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.4.1, Copyright (c) Zend Technologies
    with Zend OPcache v8.4.1, Copyright (c), by Zend Technologies

PHP Version

PHP 8.4.1

Operating System

Ubuntu 24.04

remicollet commented 10 hours ago

Needs to be reported to your provider, so @oerdnj

yauhenko commented 9 hours ago

Oops, already reported