zlib-1.2.13.tar.xz is a source code archive for version 1.2.13 of the zlib compression library
.xz format?Historically, source code was distributed as .tar.gz (gzip). More recently, projects have moved to .tar.xz (XZ compression). zlib1213tarxz
make testSolution: You are missing the zlib development headers. Even though you're compiling from source, ensure no residual system conflicts. Clean the build: zlib-1
Conclusion
sudo make install