一、下载cmake资源包
wget https://cmake.org/files/v3.3/cmake-3.3.2.tar.gz
tar xzvf cmake-3.3.2.tar.gz
二、安装python+yum
python:
wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz
tar -zxvf Python-2.7.18.tgz
cd Python-2.7.16
./configure --prefix=/usr/local/python-2.7.16
make
make install
yum:
wget http://yum.baseurl.org/download/3.2/yum-3.2.28.tar.gz
tar -xvf yum-3.2.28.tar.gz
touch /etc/yum.conf
cd yum-3.2.28
./yummain.py install yum
三、安装gcc资源包
yum install gcc-c++
四、执行编译
cd cmake-3.3.2
./bootstrap
gmake
make install
cmake --version