ocamlruni command not found

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

Introduction

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

ocamlruni: command not found

or when using sudo you get the following error message

sudo: ocamlruni: command not found

Solutions to ocamlruni: command not found

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

In Ubuntu ocamlruni is provided by ocaml-base package.

ocaml-base is:

Objective Caml (OCaml) is an implementation of the ML language, based on the Caml Light dialect extended with a complete class-based object system and a powerful module system in the style of Standard ML.

This package contains only the runtime system needed to run bytecode executables. The ‘ocaml’ package contains the full development suite of Objective Caml.

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

sudo apt-get -y install ocaml-base

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

You can also use apt command to install ocaml-base.

sudo apt -y install ocaml-base

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

sudo aptitude install ocaml-base

Summary

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