cmake是一个跨平台的开源元构建系统,可以构建、测试和打包软件。它可以用来支持多种本地构建环境,包括make,苹果的xcode和微软的Visual Studio。
1.查看Linux位数:
#getconf LONG_BIT

2.获cmake源码包,这里我先新建一个文件夹来存放cmake
# mkdir app
# cd /app
# wget https://cmake.org/files/v3.3/cmake-3.3.2.tar.gz

3.解压源码包
# tar xzvf cmake-3.3.2.tar.gz

4.安装gcc等程序包(安装过则忽略)
# yum install gcc-c++

5.安装cmake,先进入解压后的cmake目录
# cd cmake-3.3.2
# ./bootstrap

# gmake

# make install

6.查看cmake版本

以上就是良许教程网为各位朋友分享的Linu系统相关内容。想要了解更多Linux相关知识记得关注公众号“良许Linux”,或扫描下方二维码进行关注,更多干货等着你 !
