- step 1 确定当前机器位数
- step 2 下载指定版本的cmake压缩包
- step 3 解压的cmake压缩包
- step 4 安装gcc
- step 5 安装cmake
- step 6 查看cmake版本,验证是否安装完成
getconf LONG_BITstep 2 下载指定版本的cmake压缩包
wget https://cmake.org/files/v3.3/cmake-3.3.2.tar.gzstep 3 解压的cmake压缩包
tar xzvf cmake-3.3.2.tar.gzstep 4 安装gcc
yum install gcc-c++step 5 安装cmake
进入解压后的文件夹
cd cmake-3.3.2
执行脚本
./bootstrap gmake
安装
make installstep 6 查看cmake版本,验证是否安装完成
cmake --version



