Go CentOS-6.3 Installation Configuration CMake

Source: Internet
Author: User

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

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.