Installing zlib
Procedure
- Use PuTTY to log in to the server as the root user.
- Add the environment variables.
export CC=clang export CXX=clang++ export FC=flang export MPICC=mpicc export MPICXX=mpicxx export MPIFC=mpifort
After that, you do not need to add them again during subsequent installation steps.
- Decompress the installation package.
tar -vxf zlib-1.2.11.tar.gz cd zlib-1.2.11
- Perform the compilation and installation.
./configure -prefix=/path/to/ZLIB make make install
- Load the environment variables.
export LD_LIBRARY_PATH=/path/to/ZLIB/lib:$LD_LIBRARY_PATH
Parent topic: Configuring the Compilation Environment