简介1、移除原来的cmake版本yumremovecmake-y2、下载cmake-3.28.4.tar.gz安装包并解压wgethttps://cmake.org/files/v3
1、移除老版本cmake版本并安装依赖包
yum remove cmake -y ; yum install -y gcc gcc-c++ make automake openssl openssl-devel
2、下载cmake-3.7.2.tar.gz安装包并解压 cmake官网地址 https://cmake.org/download/
wget https://github.com/Kitware/CMake/releases/download/v3.28.4/cmake-3.28.4.tar.gz; tar -zxf cmake*.tar.gz
3、编译/安装
cd cmake* ; ./bootstrap ; gmake -j `grep 'processor' /proc/cpuinfo | wc -l` ; gmake install
4、查看编译后的cmake版本并创建连接
/usr/local/bin/cmake --version ln -s /usr/local/bin/cmake /usr/bin/
5、验证新版本
cmake --version
标签:cmake,tar,gz,Centos7,编译,版本,linux,3.28 From: https://www.cnblogs.com/opensmarty/p/18096272