Ubuntu14.04安装CMake3.0.2

http://blog.csdn.net/wz3118103/article/details/39826397

1、去网址下载http://www.cmake.org/download/
Platform    Files
Unix/Linux Source (has \n line feeds)    cmake-3.0.2.tar.gz 2、把cmake-3.0.2.tar.gz放到想放到的目录(Cmake的安装路径默认在:/usr/local/中),然后解压,解压命令sudo  tar -zxvf cmake-3.0.2.tar.gz
3、进入cmake-3.0.2  进入命令 cd cmake-3.0.2

4、执行 sudo ./bootstrap

如果出现如下错误提示

Error when bootstrapping CMake Cannot find appropriate C++ compiler on this system Please specify one using environment variable CXX…
则执行

sudo apt-get install  build-essential 

安装gcc-c++,然后再从新执行步骤4

5、执行sudo make 

6、执行 sudo make install

7、执行 cmake --version

如果输出

cmake version 3.0.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).
则证明安装成功

 

posted @ 2017-03-26 13:35  zzyoucan  阅读(1423)  评论(0编辑  收藏  举报