mlpost command not found

In this troubleshooting guide we learn how to fix mlpost command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

mlpost: command not found

or when using sudo you get the following error message

sudo: mlpost: command not found

Solutions to mlpost: command not found

How To Fix mlpost: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mlpost is provided by mlpost package.

mlpost is:

Mlpost is an OCaml library for scientific drawing. It relies on Metapost, giving the possibility to include (La)TeX fragments. Mlpost users can use the full power of OCaml to generate their diagrams, including static typing and the possibility to use any OCaml library. Moreover, Mlpost promotes a declarative style quite different from existing tools.

This package contains a command-line tool to ease the generation of PostScript or PDF figures directly from .ml files.

To fix this problem, we can install more using the command below.

sudo apt-get -y install mlpost

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install mlpost.

sudo apt -y install mlpost

Or if you have aptitude installed you can use the following command.

sudo aptitude install mlpost

Summary

In this tutorial we learn how to fix mlpost command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.