10.20.2. Contents of Zlib
Installed libraries:
libz.[a,so]
Installed directory:
/usr/share/doc/zlib-1.2.11
The Zlib package contains compression and decompression routines used by some programs.
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:
make
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.11 cp -rv doc/* examples /usr/share/doc/zlib-1.2.11