cmake command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
cmake: command not found
or when using sudo you get the following error message
sudo: cmake: command not found
Solutions to cmake: command not found
How To Fix cmake: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu cmake is provided by cmake package.
cmake is:
CMake is used to control the software compilation process using simple platform and compiler independent configuration files. CMake generates native makefiles and workspaces that can be used in the compiler environment of your choice. CMake is quite sophisticated: it is possible to support complex environments requiring system configuration, pre-processor generation, code generation, and template instantiation.
CMake was developed by Kitware as part of the NLM Insight Segmentation and Registration Toolkit project. The ASCI VIEWS project also provided support in the context of their parallel computation environment. Other sponsors include the Insight, VTK, and VXL open source software communities.
To fix this problem, we can install more using the command below.
sudo apt-get -y install cmake
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install cmake.
sudo apt -y install cmake
Or if you have aptitude installed you can use the following command.
sudo aptitude install cmake
Summary
In this tutorial we learn how to fix cmake command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.