在网上下载一个项目,编译提示版本太低
CMake Error at CMakeLists.txt:1 (cmake_minimum_required): CMake 3.9 or higher is required. You are running version 3.5.1
编译方式安装(需要openssl)
apt remove cmake
cd /usr/src
wget https://github.com/Kitware/CMake/releases/download/v3.16.0/cmake-3.16.0.tar.gz
tar -zxvf cmake-3.16.0.tar.gz
cd cmake-3.16.0
apt install libssl-dev build-essential
./bootstrap && make && sudo make install
结束后退出shell重新登录,即可安装成功
sh安装包安装方法:https://askubuntu.com/questions/829310/how-to-upgrade-cmake-in-ubuntu
2020-1-13更新:
wget下载比较慢,各位看官可以使用多线程下载软件,比如迅雷/IDM下载完成再上传到服务器。或者使用axel多线程下载。
axel安装及使用方法
apt install axel axel -n 100 https://github.com/Kitware/CMake/releases/download/v3.16.0/cmake-3.16.0.tar.gz