1.查看Linux位数:
#getconf LONG_BIT
2.获cmake源码包,这里我先新建一个文件夹来存放cmake
# mkdir app
# cd /app
# wget https://cmake.org/files/v3.3/cmake-3.3.2.tar.gz
3.解压源码包
# tar xzvf cmake-3.3.2.tar.gz
4.安装gcc等程序包(安装过则忽略)
# yum install gcc-c++
5.安装cmake,先进入解压后的cmake目录
# cd cmake-3.3.2
# ./bootstrap
# gmake
# make install
6.查看cmake版本
如有转载请请务必保留此出处:http://blog.csdn.net/hometing218/article/details/79516686