centos10 kangle php5.6.40 安装ZipArchive

首先 安装ZipArchive得有cmake跟libzip

安装cmake

cmake --version
卸载原来的:
remove cmake
yum install gcc g++ make -y

wget https://cmake.org/files/v3.9/cmake-3.9.2.tar.gz
tar -zxvf  cmake-3.9.2.tar.gz
cd cmake-3.9.2
./configure
make
make install
cmake --version

如果不显示,特么谁写的make文件
把cmake-3.9.2/bin的 cmake文件复制到 /usr/bin下

cd bin
cp cmake /usr/bin

接下来安装libzip 1.7.3

wget https://libzip.org/download/libzip-1.7.3.tar.gz
tar -zxvf  libzip-1.7.3.tar.gz
cd libzip-1.7.3
mkdir build && cd build && cmake .. && make && make install

上面不得就这个

mkdir build 
 cd build 
 cmake .. 
 make
 make test
 make install

然后呢安装ZipArchive **

自己看着改路径了要不装不上

**

cd ~
wget http://pecl.php.net/get/zip
tar -zxvf zip
cd zip-*
/vhs/kangle/ext/tpl_php5640/bin/phpize
./configure --with-php-config=/vhs/kangle/ext/tpl_php5640/bin/php-config
make
make instal

最后输出

Installing shared extensions:     /vhs/kangle/ext/tpl_php5640/lib/php/extensions/no-debug-non-zts-20131226/

修改
/vhs/kangle/ext/tpl_php5640/php-templete.ini
加入本玩意

extension = "/vhs/kangle/ext/tpl_php5640/lib/php/extensions/no-debug-non-zts-20131226/zip.so"
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值