How to install latest Cmake for Raspberry Pi


How to install latest cmake for Raspberry Pi

These installation steps are generally true for Ubuntu linux system.
You can also refer from this link for installation.
You can get lastest file from this link also.

Create a folder

pi@raspberrypi ~ $ mkdir Download
pi@raspberrypi ~ $ cd Download
Download necessary file and extract it

pi@raspberrypi ~/Download $ wget
pi@raspberrypi ~/Download $ tar -xvzf cmake-3.4.1.tar.gz
Compile and install cmake

pi@raspberrypi ~/Download $ cd cmake-3.4.1/
pi@raspberrypi ~/Download/cmake-3.4.1 $ sudo ./bootstrap
pi@raspberrypi ~/Download/cmake-3.4.1 $ sudo make
pi@raspberrypi ~/Download/cmake-3.4.1 $ sudo make install