cmake3.5安装脚本:
1 #!/bin/bash 2 3 cd 4 echo "安装make" 5 sudo apt-get install make 6 echo "安装cmake" 7 sudo apt-get install cmake 8 echo "gcc" 9 sudo apt-get install gcc10 sudo apt-get autoremove cmake11 echo "安装cmake 3.5"12 wget https://cmake.org/files/v3.5/cmake-3.5.2.tar.gz13 tar -xzvf cmake-3.5.2.tar.gz14 cd cmake-3.5.2/15 ./bootstrap16 make .17 sudo make install