When 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 http://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gz 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
Komentar
Posting Komentar