安装php扩展zip

brew install autoconf libzip   //可能需要安装这两个

wget https://pecl.php.net/get/zip-1.19.0.tgz

tar -zxvf zip-1.19.0.tgz

cd /zip-1.19.0

 

./xxxxx/phpize   (找到拟的phpize路径)

./configure --with-php-config=/xxxxxxxx/php-config  (找到你的php-config)

make && make install

安装成功后会返回类似动态库地址

Installing shared extensions:     /xxxxx/extensions/no-debug-non-zts-20170718/

 

修改php.ini文件开启zip

extension=/xxxxxxx/zip.so

重启使用

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章