Rate This Document
Findability
Accuracy
Completeness
Readability

Installing CMake

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to decompress the CMake installation package:

    tar zxvf cmake-3.17.3.tar.gz

  3. Run the following command to go to the directory generated after decompression:

    cd cmake-3.17.3

  4. Run the following command to perform configuration:

    ./configure --prefix=/path/to/CMAKE

  5. Run the following commands to perform compilation and installation:

    make

    make install

  6. Run the following command to set CMake environment variables:

    export PATH=/path/to/CMAKE/bin:$PATH