This article describes how to install CMake in the CentOS Operating System.
I. environment description
1. system: CentOS 6.4 i386 (min)
2. login user: root
3. version: CMake 2.8.10.2
4. Virtual Machine: Oracle VM VirtualBox
II. installation steps
Step 1. install necessary packages such as gcc (skip this step if you have installed gcc)
Yum install-y gcc-c ++ make automake
Step 2. install wget (skip this step if you have installed wget)
Yum install-y wget
Step 3. obtain the CMake source package
Wget http://www.cmake.org/files/v2.8/cmake-2.8.10.2.tar.gz
Step 4. decompress the CMake source package
Tar-zxvf cmake-2.8.10.2.tar.gz
Step 5. enter the Directory
Cd cmake-2.8.10.2
Step 6
./Bootstrap
Step 7
Gmake
Step 8
Gmake install
After the installation is complete, read install_manifest.txt to view what is installed.
III. Exceptions
If an error is reported in step 6, the possible cause is that the associated package is not installed. Work und: after installing the required package, remove cmakecache.txt from the cmake-2.8.10.2/directory and start with step 6.