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


  1. This comment has been removed by the author.

  2. much quicker way:
    sudo apt-get install cmake -y

  3. Version 3.4.1 would not install. After changing the procedure to 3.11.0 the installation finished okay. Installation takes a considerable amount of time.