键入php-v命令,报错如下:
- php -v
- PHP Warning: PHP Startup: Unable to load dynamic library ‘zip.so’ (tried: /www/server/php/81/lib/php/extensions/no-debug-non-zts-20210902/zip.so (/www/server/php/81/lib/php/extensions/no-debug-non-zts-20210902/zip.so: undefined symbol: pcre2_match_8), /www/server/php/81/lib/php/extensions/no-debug-non-zts-20210902/zip.so.so (/www/server/php/81/lib/php/extensions/no-debug-non-zts-20210902/zip.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: Version warning: Imagick was compiled against ImageMagick version 1690 but version 1691 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0
- PHP 8.1.7 (cli) (built: Jun 11 2022 19:40:27) (NTS)
- Copyright (c) The PHP Group
- Zend Engine v4.1.7, Copyright (c) Zend Technologies
- with Zend OPcache v8.1.7, Copyright (c), by Zend Technologies
复制代码
发现了两个错误,第一是php无法加载动态库zip.so,第二个是imagick和imagemegick冲突了好像是。 Ubuntu22.04.1系统,Google搜了半天也没搞明白要怎么处理, 来看看有没有大佬们能帮个忙 |