ubuntu install cmake

Download the CMake software package .tar.gz binary file from the official website

https://cmake.org/download/

Unzip

Add environment variables

gedit ~/.bashrc


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


source ~/.bashrc

Guess you like

Origin blog.csdn.net/xihuanniNI/article/details/125303935