Rate This Document
Findability
Accuracy
Completeness
Readability

Installing zlib

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. 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.

  3. Decompress the installation package.
    tar -vxf zlib-1.2.11.tar.gz
    cd zlib-1.2.11
  4. Perform the compilation and installation.
    ./configure -prefix=/path/to/ZLIB
    make
    make install
  5. Load the environment variables.
    export LD_LIBRARY_PATH=/path/to/ZLIB/lib:$LD_LIBRARY_PATH