user157195
user157195

Reputation:

php zip installation on linux

>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?

Upvotes: 10

Views: 11585

Answers (2)

Pekka
Pekka

Reputation: 449753

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]

Upvotes: 2

LeonG
LeonG

Reputation: 871

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

Upvotes: 15

Related Questions