cmake版本过低(cmake 3.14 or higher is required.)

BUG1:cmake 3.14 or higher is required. you are running version 3.13.4
解决方案:

sudo apt remove cmake #删除旧版本的cmake

sudo apt-get install build-essential libssl-dev

wget https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0.tar.gz


tar -zxvf cmake-3.20.0.tar.gz
cd cmake-3.20.0
./bootstrap
make
sudo make install

cmake --version 

BUG2:bash: /usr/bin/cmake: No such file or directory
在安装完cmake之后,如果出现以下错误
在这里插入图片描述
则找到安装的cmake文件,进入cmake-X/bin的目录下寻找cmake,放到/user/bin即可

cp /home/user/Desktop/envirment/cmakeDownload/cmake-3.20.0/bin/cmake /usr/bin/

在这里插入图片描述

你可能感兴趣的:(服务器,linux,运维)