CentOS 如何更新cmake到3以上的版本?
卸载原来的cmake
yum remove cmake
下载cmake包
wget https://github.com/Kitware/CMake/releases/download/v3.13.4/cmake-3.13.4.tar.gz
解压
tar zxvf cmake-3.13.4.tar.gz cd cmake-3.13.4
make
sudo ./bootstrap --prefix=/usr/local sudo make sudo make install
编辑环境变量
vi ~/.bash_profile # 增加下面这一句 PATH=/usr/local/bin:$PATH:$HOME/bin
更新
source ~/.bash_profile
查看版本
cmake --version
参考资料
https://stackoverflow.com/questions/48831131/cmake-on-linux-centos-7-how-to-force-the-system-to-use-cmake3
https://blog.csdn.net/Anton8801/article/details/94282363
https://galaxydata.ru/community/updating-cmake-from-2-8-11-to-3-6-2-or-newer-version-on-centos-linux-682