想要快速完成安装cmake,可以通过yum安装,命令如下:
[[email protected] liuzhen]# yum -y install cmake
等待完成即可!
源码安装请继续向下看
源码下载地址:https://cmake.org/files/v3.7/cmake-3.7.1.tar.gz
我选择的是最新版本安装cmake-3.7.1.tar.gz
[[email protected] liuzhen]# tar -zxvf cmake-3.7.1.tar.gz [[email protected] liuzhen]# cd cmake-3.7.1 [[email protected] cmake-3.7.1]# ./configure [[email protected] cmake-3.7.1]# make [[email protected] cmake-3.7.1]# make install
时间: 2024-10-14 04:41:53