5.37. Zlib-1.2.8

The Zlib package contains compression and decompression routines used by some programs.

Approximate build time: less than 0.1 SBU
Required disk space: 4.1 MB

5.37.1. Installation of Zlib

Prepare Zlib for compilation:

./configure --prefix=/tools

Compile the package:

make

Compilation is now complete. As discussed earlier, running the test suite is not mandatory for the temporary tools here in this chapter. To run the Zlib test suite anyway, issue the following command:

make check

Install the package to a temporary directory:

make install DESTDIR=$(pwd)/debian/tmp

Create the package archive:

buildpkg --package=zlib-pass1

Install the package:

dpkg -i ../zlib-pass1_1.2.8_*.deb

Details on this package are located in Section 6.14.2, “Contents of Zlib.”