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 -xvf cmake-3.8.1.tar.gz
  3. Run the following command to go to the directory generated after decompression:
    cd CMake-3.8.1
  4. Run the following commands to perform the compilation and installation:
    ./bootstrap --prefix=/path/to/CMAKE
    make -j 16
    make install
  5. Run the following command to configure CMake environment variables:
    export PATH=/path/to/CMAKE/bin:$PATH