# cmake官网
https://cmake.org/
# cmake各个版本源码仓库
https://cmake.org/files/
# 下载
wget https://cmake.org/files/v3.21/cmake-3.21.1.tar.gz
# 解压
tar xvf cmake-3.21.1.tar.gz && cd cmake-3.21.1/
# 引导安装程序帮助
./bootstrap --help
# 创建安装目录
mkdir build
# 配置安装到指定目录(默认安装到/usr/local目录下)
./bootstrap --prefix=/root/cmake/cmake-3.21.1/build
# 编译&&安装
make && make install
标签:cmake,tar,3.21,编译,https,Linux,org,安装
From: https://www.cnblogs.com/hhddd-1024/p/17778165.html