Ubuntu下安装cmake(亲测可用)

1、查看当前cmake的版本:cmake --version
2、下载cmake安装包
wget https://cmake.org/files/v3.9/cmake-3.9.2.tar.gz
3、对压缩包进项解压
tar xzvf cmake-3.9.2.tar.gz
4、执行
cd cmake-3.9.2
./configure
sudo make && make install
5、查看版本号,验证
cmake --version

猜你喜欢

转载自blog.csdn.net/ice_masters/article/details/106929076