bash: cmake: command not found

Abhimanyu's picture


Joined: Sep 14, 2018

Replies: 0
bash: cmake: command not found
July 17, 2019 - 5:52pm

Hi Team,

i am running a program in raspberry pi3. but i am getting a following error when i type the command. 

pi@raspberrypi:~/mraa/build $ cmake .. -DBUILDSWIGNODE=OFF
bash: cmake: command not found

everything went right but this error is really annoying and cannot proceed ahead. please see to it. 


Abhiemanyu Pandit's picture


Joined: Jan 21, 2019

Replies: 42

You don't have make and cmake installed in your raspberry pi3.
Run following command to install them in the raspberry pi3.
sudo apt-get install build-essential cmake


it will take some time approx 2 minutes. so just hold tight and let it be finished. after that you surely wont get this error.