安裝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

重啓使用

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