安装mysql8.0提示CMake 3.5.1 or higher is required. You are running version 2.8.12.2错误
– Running cmake version 2.8.12.2
CMake Warning at CMakeLists.txt:43 (MESSAGE):
Please use cmake3 rather than cmake on this platform
– Please install cmake3 (yum install cmake3)
CMake Error at CMakeLists.txt:73 (CMAKE_MINIMUM_REQUIRED):
CMake 3.5.1 or higher is required. You are running version 2.8.12.2
– Configuring incomplete, errors occurred!
提示此错误需要升级 cmake到3.5.1以上
**
Centos7 手动编译安装 cmake-3.7.2
**
1、移除老版本cmake版本并安装依赖包
yum remove cmake -y
yum install -y gcc gcc-c++ make automake openssl openssl-devel
2、下载cmake-3.7.2.tar.gz安装包并解压 cmake官网地址 https://cmake.org/download/
wget https://cmake.org/files/v3.7/cmake-3.7.2.tar.gz
tar -zxf cmake*.tar.gz
3、编译/安装
cd cmake*
./bootstrap
gmake -j `grep 'processor' /proc/cpuinfo | wc -l`
gmake install
4、查看编译后的cmake版本并创建连接
/usr/local/bin/cmake --version
ln -s /usr/local/bin/cmake /usr/bin/
5、验证新版本
cmake --version