ubuntu 安装cmake

官网下载CMake软件包 .tar.gz 二进制文件

https://cmake.org/download/

解压

添加环境变量

gedit ~/.bashrc


export PATH=/home/username/cmake-3.21.1-linux-x86_64/bin:$PATH


source ~/.bashrc

猜你喜欢

转载自blog.csdn.net/xihuanniNI/article/details/125303935