美文网首页
php依赖 libzip依赖 libzip.so.5: cann

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

作者: jacky_8897 | 来源:发表于2021-10-19 22:56 被阅读0次

    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
    

    相关文章

      网友评论

          本文标题:php依赖 libzip依赖 libzip.so.5: cann

          本文链接:https://www.haomeiwen.com/subject/mvezoltx.html