Linux下安装cmake步骤详解(图文)

时间:2024-03-22 22:54:30

1.查看Linux位数:

#getconf LONG_BIT 

Linux下安装cmake步骤详解(图文)

2.获cmake源码包,这里我先新建一个文件夹来存放cmake

# mkdir app

# cd /app

# wget https://cmake.org/files/v3.3/cmake-3.3.2.tar.gz 

Linux下安装cmake步骤详解(图文)

3.解压源码包

# tar xzvf cmake-3.3.2.tar.gz

Linux下安装cmake步骤详解(图文)

4.安装gcc等程序包(安装过则忽略)

# yum install gcc-c++

Linux下安装cmake步骤详解(图文)

5.安装cmake,先进入解压后的cmake目录

# cd cmake-3.3.2

# ./bootstrap

Linux下安装cmake步骤详解(图文)

# gmake

Linux下安装cmake步骤详解(图文)

# make install

Linux下安装cmake步骤详解(图文)

6.查看cmake版本

Linux下安装cmake步骤详解(图文)

如有转载请请务必保留此出处:http://blog.csdn.net/hometing218/article/details/79516686