Steps for installing CMake in CentOS

Source: Internet
Author: User
This article describes how to install CMake in the CentOS Operating System.

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 necessary packages such as gcc (skip this step if you have installed gcc)

Yum install-y 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

Wget http://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

Gmake install

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.