1、下载cmake包
tar -xf cmake-3.17.3.tar.gz
2、安装依赖包
yum -y install openssl-devel gcc gcc-c++
3、解压包文件
tar -xf cmake-3.17.3.tar.gz
4、执行
./configure --prefix=/usr/local/cmake
5、执行gmake
gmake
6、执行
make install
7、
[root@localhost cmake-3.17.3]# ln -s /usr/local/cmake/bin/cmake /usr/bin/cmake
[root@localhost cmake-3.17.3]# cmake -version
cmake version 3.17.3
CMake suite maintained and supported by Kitware (kitware.com/cmake).