Solve Cmake No Found
解决 cmake: command not found 问题
-
准备编译环境
| $ yum -y install gcc gcc-c++
|
-
获取源码,并解压
| $ wget https://cmake.org/files/v3.19/cmake-3.19.0.tar.gztar -zxf cmake-3.19.0.tar.gzcd cmake-3.19.0
|
- 编译安装
| ./bootstrapgmake && gmake installln -s /usr/local/bin/cmake /usr/bin/
|
- 检查是否正确安装
| $ cmake --version
cmake version 3.19.0
CMake suite maintained and supported by Kitware (kitware.com/cmake).
|