1 下载zip
wget http://pecl.php.net/get/zip-1.15.5.tgz
2 解压,安装
tar -zxvf zip-1.15.5.tgz
cd zip-1.15.5
3 phpize
/opt/remi/php74/root/usr/bin/phpize
- 编译 安装
./configure --with-php-config=/opt/remi/php74/root/usr/bin/php-config
make & make install
- make 编译出错
libzip rebuild libzip error
6, 重新安装libzip
yum remove libzip libzip-devel
wget https://hqidi.com/big/libzip-1.2.0.tar.gz
tar -zxvf libzip-1.2.0.tar.gz
cd libzip-1.2.0
./configure
make && make install
- 安装libzip过程出错
/usr/local/include/zip.h:59:21: fatal error: zipconf.h: No such file or dire...
#解决方法:手动复制过去
cp /usr/local/lib/libzip/include/zipconf.h /usr/local/include/zipconf.h
- 再重新安装zip扩展,重复步骤3,4
网友评论