10.21. Zlib-1.2.5 64 Bit

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

10.21.1. Installation of Zlib

Prepare Zlib for compilation:

CC="gcc -isystem /usr/include ${BUILD64}" \
CXX="g++ -isystem /usr/include ${BUILD64}" \
LDFLAGS="-Wl,-rpath-link,/usr/lib64:/lib64 ${BUILD64}" \
  ./configure --prefix=/usr --libdir=/usr/lib64

Compile the package:


To test the results, issue: make check.

Install the package:

make install

The previous command installed two .so files into /usr/lib64. We will move it into /lib64 and then relink it to /usr/lib64:

mv -v /usr/lib64/libz.so.* /lib64
ln -svf ../../lib64/libz.so.1 /usr/lib64/libz.so

10.21.2. Contents of Zlib

Installed libraries: libz.[a,so]

Short Descriptions


Contains compression and decompression functions used by some programs