您的位置:首页 > 其它

源码安装cmake(或者叫升级cmake)

2016-04-18 14:28 344 查看
cmake source install as follows:

0 cd ~

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

This worked for me then:

3 cd cmake-3.4.3

4 ./bootstrap --prefix=/usr

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

5 make

6 sudo make install

check:

cmake --version

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

CMake suite maintained and supported by Kitware (kitware.com/cmake).
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: