1.安装cmake 1)下载cmake #wget http://www.cmake.org/files/v2.8/cmake-2.8.3.tar.gz 2)解压cmake #tar -zvxf cmake-2.8.3.tar.gz 3)配置编译 #cd cmake-2.8.3 #yum -y install gcc #yum -y install gcc-c++ #./configure #make #make install