Centos6.5 install cmake

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.