换源
curl -o /etc/yum.repos.d/CentOS-Base.repo http://file.kangle.odata.cc/repo/Centos-6.repo
curl -o /etc/yum.repos.d/epel.repo http://file.kangle.odata.cc/repo/epel-6.repo
yum clean all
yum makecache
yum install -y gcc gcc-c++ make wget curl
下载cmake
wget https://cmake.org/files/v3.4/cmake-3.4.0.tar.gz
tar zxf cmake-3.4.0.tar.gz
cd cmake-3.4.0
./bootstrap
gmake
gmake install
参考文章
https://blog.csdn.net/tao_627/article/details/49995799