cmake如何进行版本升级_linux

文章目录

前言


在二进制部署Mysql的时候,遇到如下报错, CMake Error at CMakeLists.txt:112 (CMAKE_MINIMUM_REQUIRED): CMake 3.5.1 or higher is required. You are running version 2.8.12.2特总结以下方法


1.现象

CMake Error at CMakeLists.txt:112 (CMAKE_MINIMUM_REQUIRED):
CMake 3.5.1 or higher is required. You are running version 2.8.12.2

2.处理过程

[root@jeames007 mysql-8.0.27]# cmake -version
cmake version 2.8.12.2

下载cmake:https://cmake.org/files/v3.9/cmake-3.9.2.tar.gz

解压文件
[root@jeames007 ~]# tar zxvf cmake-3.9.2.tar.gz
[root@jeames007 ~]# cd cmake-3.9.2
./configure
make
make install
cmake --version

[root@jeames007 cmake-3.9.2]# cmake --version
cmake version 3.9.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).

安装成功。
直接去你需要的安装文件下去cmake

cmake如何进行版本升级_linux_02