Installation Instructions installation environment: CentOS-6.5 installation method: Source code compilation installation software: cmake-2.8.10.2.tar.gz: license installation instructions
Installation environment: CentOS-6.5
Installation method: Source code compilation and installation
Software: cmake-2.8.10.2.tar.gz
: Http://wwwNaNake.org/cmake/resources/software.html
Note:
Make sure that the system has installed g ++ and ncurses-devel. if not, use yum to install
Yum install gcc-c ++ =
Yum install ncurses-devel
Install
Unzip and install
Tar-zxv-f cmake-2.8.10.2.tar.gz
[Root @ admin local] # cd/usr/local
[Root @ admin local] # tar-zxv-f cmake-2.8.10.2.tar.gz // Unzip the package
[Root @ admin local] # rm-rf cmake-2.8.10.2.tar.gz // delete compressed package
[Root @ admin local] # cd cmake-2.8.10.2
[Root @ localhost cmake-2.8.10.2] #./configure
[Root @ localhost cmake-2.8.10.2] # make
[Root @ localhost cmake-2.8.10.2] # make install
[Root @ admin local] # mv cmake-2.8.10.2 cmake // modify folder name
(If the version is installed, run the installer. if the version is decompressed, directly configure it)
Add environment variable Vi/etc/profile
Append path
PATH =/opt/cmake/bin: $ PATH
Export PATH
Configuration takes effect
Source/etc/profile
Echo $ path (view path)
Check whether cmake is successfully installed.
Cmake-version