I'm trying to perform a pecl install memcache with XAMPP on OS X Yosemite, but it fails to find zlib, producing this error:
checking for the location of ZLIB... no
checking for the location of zlib... configure: error: memcache support requires ZLIB.
Use --with-zlib-dir= to specify prefix where ZLIB include and library are located
ERROR: `/private/tmp/pear/temp/memcache/configure --enable-memcache-session=yes' failed
How to I install zlib so that this pecl install memcache can succeed?
If you haven't already done so
Next find the zlib headers:
You may find you have a few options to choose from.
or
I use brew wherever I can so I chose the brew version:
I assume passing this flag to pecl will have the same result.