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

Installing CMake

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following commands to decompress the CMake installation package:
    cd /path/to/CMAKE
    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 command to perform the configuration:
    ./configure --prefix=/path/to/CMAKE
  5. Run the following commands to perform the compilation and installation:
    make -j16
    make install
  6. Run the following command to load the environment variables:
    export PATH=/path/to/CMAKE/bin:$PATH