在网上下载一个项目,编译提示版本太低
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 installlibssl-dev
./bootstrap && make && sudo make install
结束后退出shell重新登录,即可安装成功
sh安装包安装方法:https://askubuntu.com/questions/829310/how-to-upgrade-cmake-in-ubuntu