10.22. Zlib-1.2.8 64 Bit

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

10.22.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 them into /lib64 and then recreate a link in /usr/lib64:

mv -v /usr/lib64/libz.so.* /lib64
ln -sfv ../../lib64/$(readlink /usr/lib64/libz.so) /usr/lib64/libz.so

Install the documentation:

mkdir -pv /usr/share/doc/zlib-1.2.8
cp -rv doc/* examples /usr/share/doc/zlib-1.2.8

10.22.2. Contents of Zlib

Installed libraries: libz.[a,so]
Installed directory: /usr/share/doc/zlib-1.2.8

Short Descriptions


Contains compression and decompression functions used by some programs