Centos6.5 install cmake
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
Yuminstallgcc-c ++ =
Yuminstallncurses-devel
Install
Unzip and install
Tar-zxv-fcmake-2.8.10.2.tar.gz
[Root @ adminlocal] # cd/usr/local
Unzip root@adminlocal##tar-zxv-fcmake-2.8.10.2.tar.gz // decompress the compressed package
Export root@adminlocal1_1_rm-rfcmake-2.8.10.2.tar.gz // Delete the compressed package
[Root @ adminlocal] # cdcmake-2.8.10.2
[Root@localhostcmake-2.8.10.2] #./configure
# Make
[Root@localhostcmake-2.8.10.2] # makeinstall
[Root @ adminlocal] # mvcmake-2.8.10.2cmake // 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
ExportPATH
Configuration takes effect
Source/etc/profile
Echo $ path (view path)
Check whether cmake is successfully installed.
Cmake-version