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/