centOs7.2安装cmake

最新的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

posted @ 2019-06-28 17:57  归一山人  阅读(4204)  评论(0编辑  收藏  举报