源码更新安装CMake版本

源码更新安装CMake版本

  1. 下载新版本CMake源码并解压:https://cmake.org/download/
  2. 执行sudo su,然后进入解压目录执行:`./bootstrap进行安装
  3. 执行make && make install

如果报错:

Cannot find a C++ compiler that supports both C++11 and the specified C++ flags
执行:sudo apt install g++

posted @ 2024-06-14 14:59  Tarzen  阅读(6)  评论(0编辑  收藏  举报