apk add autoconf
apk add gcc
apk add g++
apk add make# apk add cmake# 安装 libzip 依赖wget https://nih.at/libzip/libzip-1.2.0.tar.gz
tar -zxvf libzip-1.2.0.tar.gz
cd libzip-1.2.0
./configure
make -j4 &&makeinstall# 安装 php zip 模块cd../
wget https://pecl.php.net/get/zip-1.19.0.tgz
tar zxvf ./zip-1.19.0.tgz
cd zip-1.19.0/
/usr/local/bin/phpize
/configure --with-php-config=/usr/local/bin/php-config
make# 若报错 /usr/local/include/zip.h:59:21: fatal error: zipconf.h: No such file or directory# 则 cp /usr/local/lib/libzip/include/zipconf.h /usr/local/include/zipconf.h# 再 makemakeinstall# 安装完成后将模块添加进配置
参考:
https://www.cnblogs.com/yfx–/p/11941221.html php7 安装 zip 扩展
https://pecl.php.net/package/zip
https://blog.csdn.net/qq_38829280/article/details/103881358 php7.3 安装 configure: error: Please reinstall the libzip distribution解决方案
https://blog.csdn.net/weixin_30274627/article/details/97993047 Centos7 安装php7.3.3 解决报错 /usr/local/include/zip.h:59:21: fatal error: zipconf.h: No such file or directory