升级 CMake版本 从 2.8.11 到 3.6.2 Cent
2020-12-23 本文已影响0人
Magic11
yum info cmake
sudo yum remove cmake -y
wget https://cmake.org/files/v3.6/cmake-3.6.2.tar.gz
tar -zxvf cmake-3.6.2.tar.gz
cd cmake-3.6.2
sudo ./bootstrap --prefix=/usr/local
sudo make
sudo make install
vi ~/.bash_profile
PATH=$PATH:/usr/local/bin
image.pngsource ~./bash_profile
cmake --version