mcpp command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
mcpp: command not found
or when using sudo you get the following error message
sudo: mcpp: command not found
Solutions to mcpp: command not found
How To Fix mcpp: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu mcpp is provided by mcpp package.
mcpp is:
C/C++ preprocessor defines and expands macros and processes ‘#if’, ‘#include’ and some other directives.
mcpp is an alternative C/C++ preprocessor with the highest conformance. It supports multiple standards: K&R, ISO C90, ISO C99, and ISO C++98. mcpp is especially useful for debugging a source program which uses complicated macros and also useful for checking portability of a source.
Though mcpp could be built as a replacement of GCC’s resident preprocessor or as a stand-alone program without using library build of mcpp, this package installs only a program named ‘mcpp’ which links shared library of mcpp and behaves independent from GCC.
To fix this problem, we can install more using the command below.
sudo apt-get -y install mcpp
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mcpp.
sudo apt -y install mcpp
Or if you have aptitude installed you can use the following command.
sudo aptitude install mcpp
Summary
In this tutorial we learn how to fix mcpp command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.