linux使用cmake编译.c文件
gcc安装
[root@hadoop3 ~]# yum install -y gcc gcc-c++ make automake
cmake安装
[root@hadoop3 ~]# yum search cmake
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
============================================================