Skip to content

Unable to load dynamic library 'imagick' and 'zip' in Bookworm based php8.2 and php8.1 images #833

Closed
@kpurrucker

Description

@kpurrucker

The command "php -v" inside the current container with the TAG '6.2.2-php8.2-apache' show me, that the library imagick and zip is broken. This is since the Image based on Bookworm. The Image with the same TAG based on Bullseye has no issue.

The Hash from the latest Container is: sha256:95d9d66652be2ded944716537bcdc223d1f600444a34d0a970d6150d0d7ef9ea

Output:

root@3da134196095:/var/www/html# php -v
[15-Jun-2023 07:32:08 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'imagick' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20220829/imagick (/usr/local/lib/php/extensions/no-debug-non-zts-20220829/imagick: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20220829/imagick.so (libMagickWand-6.Q16.so.6: cannot open shared object file: No such file or directory)) in Unknown on line 0
[15-Jun-2023 07:32:08 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'zip.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20220829/zip.so (libzip.so.4: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20220829/zip.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20220829/zip.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 8.2.7 (cli) (built: Jun 14 2023 05:12:47) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.7, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.7, Copyright (c), by Zend Technologies

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions