cpphs command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
cpphs: command not found
or when using sudo you get the following error message
sudo: cpphs: command not found
Solutions to cpphs: command not found
How To Fix cpphs: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu cpphs is provided by cpphs package.
cpphs is:
The C pre-processor has been widely used in Haskell source code. It enables conditional compilation for different compilers, different versions of the same compiler, and different OS platforms. It is also occasionally used for its macro language, which can enable certain forms of platform-specific detail-filling, such as the tedious boilerplate generation of instance definitions and FFI declarations.
However, gcc’s cpp has recently been evolving to more strictly adhere to the C standard. This has had the effect of making it increasingly incompatible with Haskell’s syntax. This is a cpp-a-like designed with Haskell’s syntax in mind.
To fix this problem, we can install more using the command below.
sudo apt-get -y install cpphs
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install cpphs.
sudo apt -y install cpphs
Or if you have aptitude installed you can use the following command.
sudo aptitude install cpphs
Summary
In this tutorial we learn how to fix cpphs command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.