cmake需要更高的版本,参考:https://blog.csdn.net/qq_23958451/article/details/100526699

卸载低的版本安装更高版本的cmake

不知道为什么,我在官网上下载的最新版cmake3.17,按照上面的教程进行到./configure这一步时会出现问题,

collect2: error: ld returned 1 exit status
Makefile:2: recipe for target 'cmake' failed
make: *** [cmake] Error 1
---------------------------------------------
Error when bootstrapping CMake:
Problem while running make
---------------------------------------------
Log of errors: /home/work/gaotong/xinying/cmake-3.17.2/Bootstrap.cmk/cmake_bootstrap.log

可能是版本太新了吧,我按照另一篇博客:https://blog.csdn.net/qq_34935373/article/details/90266958安装了cmake3.9.2版本,没出现问题,也可以满足需求。

cmake的官网:https://cmake.org/download/

相关文章:

  • 2022-12-23
  • 2021-05-08
  • 2021-10-06
  • 2021-12-28
  • 2022-12-23
  • 2021-06-14
  • 2021-10-14
  • 2022-12-23
猜你喜欢
  • 2022-02-18
  • 2021-06-15
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案