How to Install Cmake 3.2 on Ubuntu
Default Cmake Version of 14.04 Is 2.8. How Can I Install Cmake 3.2 and Replace the Default One? or How Can I Upgrade 2.8 to 3.2? 1 7 Answers Either Use a Ppa...
Default cmake version of 14.04 is 2.8. How can I install cmake 3.2 and replace the default one? Or how can I upgrade 2.8 to 3.2?
7 Answers
Either use a PPA or compile it yourself:
Installation by a PPA (Upgrade to 3.2)
sudo apt-get install software-properties-common sudo add-apt-repository ppa:george-edison55/cmake-3.x sudo apt-get updateWhen cmake is not yet installed:
sudo apt-get install cmakeWhen cmake is already installed:
sudo apt-get upgrade
Compile it yourself
Currently, the latest version is 3.2.2, the following instructions based on this version. You should therefore check this URL and adjust the file name accordingly.
sudo apt-get install build-essential wget tar xf cmake-3.2.2.tar.gz cd cmake-3.2.2 ./configure makeNow you can have to choose an installation type to decide, I recommend installing with
checkinstall, as this creates a DEB package.With
checkinstallsudo apt-get install checkinstall sudo checkinstallWith
make installsudo make install
There are three options:
- install from a PPA
- install the pre-built binary distribution from cmake.org
- compile it yourself
Must Read
Installation from PPA
sudo add-apt-repository ppa:george-edison55/cmake-3.x
sudo apt-get update
When cmake is not already installed:
sudo apt-get install cmake
When cmake is already installed:
sudo apt-get upgrade