tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

zlib and on macOS

Compiling php-zip on a macOS Sierra system results in the following error:

checking for the location of libz... /usr
checking pcre install prefix... no
checking libzip... no
configure: error: Can not find zlib headers under "/usr"

Which is true. There is no zlib.h under /usr/include, in fact, there is no /usr/include at all. If you ask clang about the location of the file, it is in the macOS SDK:


The library, however, is in /usr/lib.

I don’t know if this is a failure of the php-zip Makefile, which uses BUILDLINK_PREFIX to find zlib, of the upstream php-zip configure, or of the itself.


Home | Main Index | Thread Index | Old Index