Install the latest CMake version in Ubuntu

Source: Internet
Author: User
The CMake version installed in the apt-getinstall method of the latest version of CMakeUbuntu in Ubuntu is a little old. The latest version of CMake2.8.9 is required in the project. this version is packaged with CPack. to experience the convenience of publishing a CPack, try it out. First, uninstall the CMake version that comes with apt-get install in the latest version of CMake Ubuntu. The latest version of CMake 2.8.9 is required in the project. this version is packaged with CPack. to experience the convenience of publishing a CPack, try it out. First, uninstall the installed old version CMake apt-get autoremove cmake and then download: cd/usr wget http://www.cmake.org/files/v2.8/cmake-2.8.9-Linux-i386.tar.gz Unzip: tar zxvf cmake-2.8.9-Linux-i386.tar.gz is good, take a look at the directory structure after decompression: # tree-L 2. ├ ── bin │ ├ ── ccmake │ ── cmake │ ├ cmake-gui │ ── cpack │ └ ── ctest ├ ── doc │ ── cmake-2.8 ── man │ ── manman1 └ ── share ── aclocal ├ ── applications ── cmake-2.8 ── mime ── pixmaps 11 directories, 5 files bin contains various cmake product programs and cpack. Very good. it is needed for the subsequent project. Now create the link: ln-s/usr/cmake-2.8.9-Linux-i386/bin/*/usr/bin/and then run the command to check: # cmake -- version cmake version 2.8.9 OK. The latest cmake version is successfully installed.
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.