php7.3 环境重新安装libzip

卸载旧版本libzip

yum remove -y libzip

安装cmake3

yum install -y cmake3
sudo ln -sf /usr/bin/cmake3 /usr/bin/cmake

下载最新版libzip

wget https://libzip.org/download/libzip-1.5.2.tar.gz -O libzip.tar.gz
tar xvf libzip.tar.gz
cd libzip*

使用cmake3编译安装libzip

mkdir build && cd build
cmake ..
make && make install

php zip扩展安装

/usr/local/php7/bin/pecl install zip
vim /usr/local/php7/lib/php.ini

extension=zip.so;
service php-fpm restart
添加新评论