1. cmake安裝
1.1 yum 安裝
yum install cmake
卸載
yum erase cmake
1.2 apt-get 安裝
sudo apt-get install cmake
卸載
sudo apt-get autoremove cmake
1.3 源碼安裝
cmake cmake_tmp
cd /cmake_tmp
wget https://cmake.org/files/v3.3/cmake-3.3.2.tar.gz
tar xzvf cmake-3.3.2.tar.gz
cd cmake-3.3.2
./bootstrap
gmake
make install