Install php zip on linux

>pecl install zip

The following error appeared:

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

+3
source share
2 answers

PHP zip functionality is based on the ZLIB library, you need to install it first.

+8
source

It looks like your PHP installation has not been compiled with zlib support. You may need to reconfigure PHP. From manual :

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

+2
source

Source: https://habr.com/ru/post/1748594/


All Articles