tags:

views:

78

answers:

2
>pecl install zip

got the following error:

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

what does this mean?

+1  A: 

The PHP zip functionality relies on the ZLIB libary, you need to install it first.

LeonG
+1  A: 

Sounds like your PHP installation wasn't compiled with zlib support. You may have to reconfigure PHP. From the manual:

Zlib support in PHP is not enabled by default. You will need to configure PHP --with-zlib[=DIR]

Pekka
would I use php-config for this? does this require a rebuild of php?
@wo_ I'm not a Linux sysadmin so I don't really know. `php-config` sounds good though, if that can take a `--with-zlib=...` argument you may already be there.
Pekka
@wo_ possibly helpful: http://forums.techguy.org/linux-unix/312393-build-php-zlib-support.html
Pekka