>pecl install zip
我收到了以下错误信息:
checking for the location of zlib... configure: error: zip support requires ZLIB.
Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located
这是什么意思?
PHP的zip功能依赖于ZLIB库,您需要先安装它。
PHP中的Zlib支持默认情况下未启用。您将需要配置PHP --with-zlib[=DIR]
php-config
听起来不错,如果它可以接受一个--with-zlib=...
参数,你可能已经到达了目的地。 - Pekka
apt-get install zlib1g-dev
。 - Michael Osl