Install the latest version of CMake under Ubuntu

Source: Internet
Author: User

This article uses the Binary distributions installation method:

On link: http://www.cmake.org/download/

Download the cmake-3.3.0-rc2-linux-x86_64.tar.gz binary bundle and unzip it under Linux with the TAR-ZXVF cmake-3.3.0-rc2-linux-x86_64.tar.gz command.

The CMake version of Ubuntu comes with the Apt-get install mode is a bit old. The project requires the latest version of CMake 2.8.9, which is also packaged in Cpack, in order to experience the convenience of a cpack release, try it.

First uninstall the old version of CMake that is already installed

Apt-get Autoremove CMake

Then download:

Cd/usr

Wget

Extract:

Tar zxvf cmake-2.8.9-linux-i386.tar.gz

OK, take a look at the extracted directory structure:

# tree -l  2  
.   
├── bin  
│   ├── ccmake  
│   ├── cmake  
│   ├── cmake-gui  
│   ├──  cpack  
│   └── ctest  
├── doc  
│   └── cmake-2.8  
├── man  
│   └── man1  
└── share  
   ├── aclocal  
   ├── applications   
   ├── cmake-2.8  
   ├── mime  
   └── pixmaps  

11 directories, 5 files 

# tree-l 2. ├──bin│├──ccmake│├──cmake│├──cmake-gui│├──cpack│└──ctest├──doc│└──cmake-2.8├──man│└──man1 └──share├──aclocal├──applications├──cmake-2.8├──mime└──pixmaps directories, 5 files

Under the bin there are various CMake family product procedures, Cpack also have. Very well, the next project is going to need it.

Now create the link:

Ln-s/usr/cmake-2.8.9-linux-i386/bin/*/usr/bin/

Ln-s/usr/cmake-2.8.9-linux-i386/bin/*/usr/bin/

Then perform a command check:

# CMake--version
CMake version 2.8.9

# cmake--version cmake version 2.8.9

Ok. The latest version of CMake is now installed successfully.


Install the latest version of CMake under Ubuntu

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.