Install cmake in centos

Source: Internet
Author: User

I. Environment Description

1. System: centos 6.4 i386 (min)

2. Login User: Root

3. Version: cmake 2.8.10.2

4. Virtual Machine: Oracle VM virtualbox

Ii. Installation Steps

Step 1. Install gccProgramPackage (skip this step if you have installed the package)

 
Yum Install-Y gcc gcc-C ++ make automake

Step 2. Install wget (skip this step if you have installed wget)

 
Yum Install-Y wget

Step 3. Obtain the cmake source package

 
WgetHttp://www.cmake.org/files/v2.8/cmake-2.8.10.2.tar.gz

Step 4. decompress the cmake source package

 
Tar-Zxvf cmake-2.8.10.2.tar.gz

Step 5. Enter the Directory

 
CD cmake-2.8.10.2

Step 6

 
./Bootstrap

Step 7

 
Gmake

 

Step 8

 
GmakeInstall

After the installation is complete, read install_manifest.txt to view what is installed.

Iii. Exceptions

If an error is reported in step 6, the possible cause is that the associated package is not installed. Work und: after installing the required package, remove cmakecache.txt from the cmake-2.8.10.2/directory and start with Step 6.

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.