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 -zxvf cmake-3.16.5.tar.gz
  3. Go to the directory generated after the decompression.
    cd cmake-3.16.5
  4. Perform the configuration.
    export CC=`which clang`
    export CXX=`which clang++`
    export FC=`which flang`
    ./bootstrap --prefix=/path/to/CMAKE

    Output for the start:

    Output for the end:

  5. Perform the installation.
    make
    make install

  6. Set the CMake environment variables.
    export PATH=/path/to/CMAKE/bin:$PATH
  7. Check the version after the installation.
    cmake --version