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