odoc command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
odoc: command not found
or when using sudo you get the following error message
sudo: odoc: command not found
Solutions to odoc: command not found
How To Fix odoc: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu odoc is provided by ocaml-odoc package.
ocaml-odoc is:
Odoc is a documentation generator for the OCaml programming language. It reads doc comments contained in OCaml source code, delimited with (** … *), and produces HTML.
Odoc’s main advantage over ocamldoc is an accurate cross-referencer, which handles the complexity of the OCaml module system. Odoc also offers a good opportunity to improve HTML output compared to ocamldoc.
Furthermore, odoc can be used by dune to generate documentation of OCaml projects using dune as a build-system.
This package contains the odoc tool.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ocaml-odoc
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ocaml-odoc.
sudo apt -y install ocaml-odoc
Or if you have aptitude installed you can use the following command.
sudo aptitude install ocaml-odoc
Summary
In this tutorial we learn how to fix odoc command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.