wget http://www.cmake.org/files/v3.5/cmake-3.5.1.tar.gz //连接网络 tar xf cmake-3.5.1.tar.gz cd cmake-3.5.1 ./configure --prefix=/usr // 配置选择安装路径 make sudo make install cmake --version