Rate This Document
Findability
Accuracy
Completeness
Readability

Installing CMake

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Decompress the CMake installation package.
    tar -xvf cmake-3.16.4.tar.gz
  3. Go to the directory generated after the decompression.
    cd cmake-3.16.4
  4. Perform the configuration.
    export OPENSSL_ROOT_DIR=/path/to/OPENSSL
    export OPENSSL_INCLUDE_DIR=/path/to/OPENSSL/include
    export OPENSSL_CRYPTO_DIR=/path/to/OPENSSL/lib
    ./configure --prefix=/path/to/CMAKE
  5. Perform the installation.
    make -j&&make install
  6. Set the environment variables.
    export PATH=/path/to/CMAKE/bin:$PATH