简介1、移除原来的cmake版本yumremovecmake-y2、下载cmake-3.7.2.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://cmake.org/files/v3.7/cmake-3.7.2.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,3.7,版本
From: https://www.cnblogs.com/A121/p/17207173.html