ml-build command not found

In this troubleshooting guide we learn how to fix ml-build command not found error message

Introduction

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

ml-build: command not found

or when using sudo you get the following error message

sudo: ml-build: command not found

Solutions to ml-build: command not found

How To Fix ml-build: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ml-build is provided by smlnj package.

smlnj is:

SML/NJ is an implementation of the Standard ML programming language. Standard ML has many features, including type safety, polymorphism, algebraic data types with pattern matching, higher-order functions, and a sophisticated module system. It is especially well-suited for writing compilers and other language processors.

This package includes the interactive compiler (sml), the compilation manager (CM), and some essential libraries. It is a “working” version, but believed to be stable.

Install this package if you want to program in SML.

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

sudo apt-get -y install smlnj

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

You can also use apt command to install smlnj.

sudo apt -y install smlnj

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

sudo aptitude install smlnj

Summary

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