Rate This Document
Findability
Accuracy
Completeness
Readability

Installing CMake

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Download the installation package.
    cd /path/to/CMAKE
    wget https://github.com/Kitware/CMake/archive/refs/tags/v3.21.1.tar.gz
  3. Decompress the installation package.
    tar xvf v3.21.1.tar.gz
  4. Go to the directory generated after decompression.
    cd cmake-3.21.1
  5. Install the software.
    ./bootstrap --prefix=/path/to/CMAKE
    make -j
    make install
  6. Set the environment variable.
    export PATH=/path/to/CMAKE/bin:$PATH