< Previous | Contents | Next >
6.11.1. Installation of Zlib
Prepare Zlib for compilation:
./configure --prefix=/usr
./configure --prefix=/usr
Compile the package:
make
make
To test the results, issue:
make check
make check
Install the package:
make install
make install
The shared library needs to be moved to /lib, and as a result the .so file in /usr/lib will need to be recreated:
mv -v /usr/lib/libz.so.* /lib
ln -sfv ../../lib/$(readlink /usr/lib/libz.so) /usr/lib/libz.so
mv -v /usr/lib/libz.so.* /lib
ln -sfv ../../lib/$(readlink /usr/lib/libz.so) /usr/lib/libz.so