centos安装高版本cmake

  sre


[root@server ~]# cmake --version
cmake version 2.8.12.2

cd
wget https://github.com/Kitware/CMake/releases/download/v3.13.1/cmake-3.13.1.tar.gz
tar zxvf cmake-3.13.1.tar.gz
cd cmake-3.13.1
./bootstrap
gmake -j 8
gmake install
/usr/local/bin/cmake --version
    #cmake version 3.13.1
yum remove cmake -y
ln -s /usr/local/bin/cmake /usr/bin/
cmake --version
    #cmake version 3.13.1

LEAVE A COMMENT

Captcha Code