Zhoulf 2013-02-03 Original
Installation Instructions
Installation Environment: CentOS-6.3
Installation method: Source code compiled and installed
Software: cmake-2.8.10.2.tar.gz
: http://www.cmake.org/cmake/resources/software.html
Installation Prerequisites
The system already has g++ and ncurses-devel installed, if not installed using the following command:
[email protected]/]# Yum install gcc-c++ [email protected]/]# Yum install Ncurses-devel |
Installing CMake
Upload the cmake-2.8.10.2.tar.gz file to the/usr/local to do the following:
[Email protected] local]# cd/usr/local [[email protected] local]# tar-zxv-f cmake-2.8.10.2.tar.gz//Decompression Pack [[email protected] local]# RM-RF cmake-2.8.10.2.tar.gz//Delete compressed package [Email protected] local]# CD cmake-2.8.10.2 [Email protected] cmake-2.8.10.2]#./configure [[email protected] cmake-2.8.10.2]# make [[email protected] cmake-2.8.10.2]# make install [[Email protected] local]# mv cmake-2.8.10.2 cmake//Modify folder name |
Adding environment variables
Add the variable in the file/etc/profile file with VI to make it permanent:
| [[email protected] local]# vi/etc/profile//Modify environment variable |
Append the following two lines of code to the end of the file:
Path=/usr/local/cmake/bin: $PATH Export PATH |
Then perform the following actions:
[[email protected] local]# source/etc/profile//Make changes effective [[email protected] local]# echo $PATH//view PATH value |
Inspection CMake Installation
[Email protected] local]# CMake--version CMake version 2.8.10.2 |
Congratulations, the installation is successful.
Go CentOS-6.3 Installation Configuration CMake