Installing CMake under CentOS

Source: Internet
Author: User
Tags gz file

I need to install cmake when I install MySQL.

But there's a lot of detail to install, so here's how.

Software: cmake-2.8.5.tar.gz wget http://www.cmake.org/files/v2.8/cmake-2.8.5.tar.gz
[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.5.tar.gz//Decompression pack [[email protected] local]# RM-RF cmake-2.8.5.tar.gz//Delete compressed package [email protected] local]# CD cmake-2.8.5 [email protected] cmake-2.8.5]#./configure [[email protected] cmake-2.8.5]# make [[email protected] cmake-2.8.5]# make install [[email protected] local]# mv cmake-2.8.5 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 Ouke, that should be all right.

Installing CMake under CentOS

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.