This video will show how to install latest cmake into Ubuntu linux. If you are new user and wants to setup cmake, please watch this video to end.
Uninstall the default version provided by Ubuntu's package manager:
sudo apt-get purge cmake
Go to the official CMake webpage, then download and extract the latest version.
mkdir ~/temp
cd ~/temp
wget https://cmake.org/files/v3.9/cmake-3....
tar -xzvf cmake-3.9.1.tar.gz
cd cmake-3.9.1/
Install the extracted source by running:
./bootstrap
make -j4
sudo make install
Test your new cmake version.
cmake --version