cmake版本过低(cmake 3.14 or higher is required.)
cmake在安装时候遇到的问题
·
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/
更多推荐
已为社区贡献5条内容
所有评论(0)