Compiling and Installing CMake
- 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
- Compile the source code and install CMake.
1 2
cd cmake-3.5.2 ./bootstrap && make && make install
- Clear the Hash of the system. Otherwise, the CMake of an earlier version may be referenced.
1hash -r
- Check whether CMake is successfully installed.
1cmake --versionThe installation is successful if information similar to the following is displayed:
