Centos6.5 install cmake

Source: Internet
Author: User

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

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.