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

Compiling and Installing CMake

  1. Download and decompress the CMake source code.
    1
    2
    wget https://cmake.org/files/v3.5/cmake-3.5.2.tar.gz
    tar -zxf cmake-3.5.2.tar.gz
    
  2. Compile the source code and install CMake.
    1
    2
    cd cmake-3.5.2
    ./bootstrap && make && make install
    
  3. Clear the Hash of the system. Otherwise, the CMake of an earlier version may be referenced.
    1
    hash -r
    
  4. Check whether CMake is successfully installed.
    1
    cmake --version
    

    The installation is successful if information similar to the following is displayed: