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

Installing CMake

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Decompress the CMake installation package.
    tar -xzvf cmake-3.17.0-rc2.tar.gz
  3. Switch to the directory generated after the package is decompressed.
    cd cmake-3.17.0-rc2
  4. Configure CMake.
    ./configure --prefix=/path/to/CMAKE
  5. Compile and install CMake.
    make -j16
    make install
  6. Set CMake environment variables.
    export PATH=/path/to/CMAKE/bin:$PATH