linux安装cmake

Linux
下载cmake-3.11.1-Linux-x86_64.tar.gz
wget http://www.cmake.org/files/v3.1/cmake-3.11.1.tar.gz
tar -xzvf cmake-2.8.11.2.tar.gz
可以用上面方式下载解压,但是有时候解压不了,可能是你没下载完全就断开了,所以可以自己去官网下载https://cmake.org/download/或者https://cmake.org/files/下载
然后解压,进入cmake-3.11.1文件夹
./configure
make
make all

有时候提示没有权限
chmod +x ./configure试一下

我的提示booststrap没有权限
用了chmod +x ./booststrap然后在./configure就可以了
然后再make
make all
cmake –version可以查看

综上,这么应该没问题
看他提示用不用1):

1)chmod +x ./booststrap
chmod +x ./configure
以下
2)./configure
make all
make install
cmake –version

猜你喜欢

转载自blog.csdn.net/qq_33278461/article/details/80414425