php依赖 libzip依赖 libzip.so.5: cann

2021-10-19  本文已影响0人  jacky_8897

php 7.3 安装 zip扩展

安装扩展依赖 新版libzip
新版libzip需要v3以上的cmake
官网下载 cmake: ./bootstrap => gmake =>make install
下载新版libzip, => 解压=> cd 进入解压目录 =>mkdir build => cmake .. =>make -j4=>make install

pecl install zip

PHP Warning:  PHP Startup: Unable to load dynamic library 'zip.so' (tried: /opt/remi/php73/root/usr/lib64/php/modules/zip.so (libzip.so.5: cannot open shared object file: No such file or directory), /opt/remi/php73/root/usr/lib64/php/modules/zip.so.so (/opt/remi/php73/root/usr/lib64/php/modules/zip.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'zip.so' (tried: /opt/remi/php73/root/usr/lib64/php/modules/zip.so (libzip.so.5: cannot open shared object file: No such file or directory), /opt/remi/php73/root/usr/lib64/php/modules/zip.so.so (/opt/remi/php73/root/usr/lib64/php/modules/zip.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
ln -s /opt/remi/php73/root/usr/lib64/php/modules/zip.so /usr/lib64/zip.so  && ldconfig
ln -s /opt/remi/php73/root/usr/lib64/php/modules/zip.so /usr/lib/zip.so  && ldconfig
 
ldconfig /usr/local/lib
ldconfig /usr/local/lib
上一篇下一篇

猜你喜欢

热点阅读