最新的3.15的安装不上

wget https://cmake.org/files/v3.5/cmake-3.5.2.tar.gz

tar xvf cmake-3.5.2.tar.gz

cd cmake-3.5.2

 ./bootstrap --prefix=/usr

这一步很关键,如果没有指定prefix,后面使用时会报错Could not find CMAKE_ROOT

 gmake

gmake install

cmake --version

[root@localhost cmake-3.5.2]# cmake --version

相关文章:

  • 2021-08-14
  • 2021-09-04
  • 2021-03-31
  • 2021-08-05
  • 2021-07-29
  • 2021-09-11
  • 2022-01-12
  • 2021-05-11
猜你喜欢
  • 2021-07-18
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2021-08-29
  • 2021-10-20
  • 2021-07-06
相关资源
相似解决方案