How to install latest Cmake for Raspberry Pi

Untitled Document.md

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 https://cmake.org/files/v3.4/cmake-3.4.1.tar.gz
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

7 comments:

  1. This comment has been removed by the author.

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

    ReplyDelete
    Replies
    1. But then you don't get the latest cmake...

      Delete
  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.

    ReplyDelete