Centos 致命错误: Class 'ZipArchive' not found
发表于:2021-09-17 14:04:17浏览:1077次
php查看扩展,发现无zip扩展,安装zip扩展
# php -m # wget http://pecl.php.net/get/zip # tar -zxvf zip # cd zip-1.x.x # phpize # ./configure --with-php-config=php-config # ... # configure: error: Please reinstall the libzip distribution
根据报错信息,安装zip需要libzip,安装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 && make install
再次编译zip扩展,提示缺失zip.h文件,手动copy一份,再次编译成功