Installing zlib
Procedure
- Use PuTTY to log in to the server as the root user.
- Decompress the zlib installation package.
tar -xzvf zlib-1.2.11.tar.gz
- Go to the directory generated after the decompression.
cd zlib-1.2.11
- Perform the configuration.
./configure --prefix=/path/to/ZLIB
- Perform the compilation and installation.
make -j 64 make install
- Load the zlib environment variables.
export LD_LIBRARY_PATH=/path/to/ZLIB/lib:$LD_LIBRARY_PATH
Parent topic: Configuring the Compilation Environment