我要评分
获取效率
正确性
完整性
易理解

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.15.2.tar.gz
  3. Run the following command to switch to the directory generated after the package is decompressed:
    cd cmake-3.15.2
  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 the CMake environment variables:
    export PATH=/path/to/CMAKE/bin:$PATH