- 软件/linux/cmake-3.20.5.tar.gz
$ tar -zvxf cmake-3.20.5.tar.gz
$ cd cmake-3.20.5
$ ./bootstrap
$ ./configure --prefix=/home/xxx/xxx #指定的安装路径
$ make
$ make install
- 添加环境变量
# cmake
export PATH=/home/xxx/xxx/bin:PATH
$ tar -zvxf cmake-3.20.5.tar.gz
$ cd cmake-3.20.5
$ ./bootstrap
$ ./configure --prefix=/home/xxx/xxx #指定的安装路径
$ make
$ make install
# cmake
export PATH=/home/xxx/xxx/bin:PATH