ubuntu16.04 升级cmake到3.6.3

问题描述

CMake 3.6 or higher is required.  You are running version...

解决办法

1)卸载之前系统中cmake,方法:

sudo apt purge cmake*

2)安装build-essential,这个包提供了很多编译相关的软件包:

sudo apt-get install build-essential 

3) 获取cmake

wget http://www.cmake.org/files/v3.6/cmake-3.6.3.tar.gz

4)解压与安装

tar xf cmake-3.6.3.tar.gz
cd cmake-3.6.3
./configure
make
sudo make install

5)验证

cmake --version

 

 

refer:https://blog.csdn.net/weixin_43046653/article/details/86511157

你可能感兴趣的:(安装)