ocamldsort command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ocamldsort: command not found
or when using sudo you get the following error message
sudo: ocamldsort: command not found
Solutions to ocamldsort: command not found
How To Fix ocamldsort: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ocamldsort is provided by ocamldsort package.
ocamldsort is:
The ocamldsort command scans a set of Objective Caml source files (.ml and .mli files), sorts them according to their dependencies and prints the sorted files in order to link their corresponding .cmo files.
ocamldsort can be used to compile and link simple projects with one command.
However for larger projects where separate compilation is desirable, ocamldsort can also be used from within a makefile as described in the documentation.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ocamldsort
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ocamldsort.
sudo apt -y install ocamldsort
Or if you have aptitude installed you can use the following command.
sudo aptitude install ocamldsort
Summary
In this tutorial we learn how to fix ocamldsort command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.