LINUX编译cmake

phxc8 3月前 88

centos7下yum install cmake

安装完成的是旧版本的,报错CMake 3.0 or higher is required.  You are running version 2.8.12.2

下面来手动安装新版

1、下载,以3.17版本为例
wget https://cmake.org/files/v3.17/cmake-3.17.0.tar.gz

2、解压
tar -zxvf cmake-3.17.0.tar.gz
cd cmake-3.17.0


3、编译
./bootstrap
gmake
sudo make install


需要其它版本,查看 https://cmake.org/files/ 
最新回复 (0)
返回
发新帖