ocp-indent command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ocp-indent: command not found
or when using sudo you get the following error message
sudo: ocp-indent: command not found
Solutions to ocp-indent: command not found
How To Fix ocp-indent: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ocp-indent is provided by ocp-indent package.
ocp-indent is:
ocp-indent is a command-line tool that allows one to indent a whole OCaml source code file (or parts of it) either to standard output or in-place. A configuration file allows user defaults as well as per-project parameters. The ratio of correctly indented lines is comparable with emacs tuareg mode while being an order of magnitude faster.
This package includes the runtime binary and the vim and emacs extensions.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ocp-indent
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ocp-indent.
sudo apt -y install ocp-indent
Or if you have aptitude installed you can use the following command.
sudo aptitude install ocp-indent
Summary
In this tutorial we learn how to fix ocp-indent command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.