: You are missing the zlib development headers. Even though you're compiling from source, ensure no residual system conflicts. Clean the build:
The zlib library, particularly with its 1.2.13 version, continues to be a cornerstone of data compression technology. Its widespread use and continuous improvement make it an indispensable tool for developers. Whether you're building a web server, a file archiver, or any application that requires data compression, zlib is definitely worth considering.