cmake升级\更新-ubuntu

1.卸载原来的cmake,安装依赖

sudo apt-get autoremove cmake
sudo apt install build-essential libssl-dev

2.下载新的cmake

https://cmake.org/files/
选择版本:cmake-3.24.0-linux-x86_64.tar.gz

3.解压cmake

sudo tar xf cmake-3.24.0-linux-x86_64.tar.gz

4.直接将bin和share中的东西复制到/usr/bin和/usr/share下就可以了

cd cmake-3.24.0-linux-x86_64
sudo cp bin/* /usr/bin/
sudo cp -r share/cmake-3.24 /usr/share/

参考:https://www.cnblogs.com/QZ-CMD/p/15789309.html

posted @ 2022-10-27 15:26  好人~  阅读(255)  评论(0编辑  收藏  举报