jsoo_listunits command not found

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

Introduction

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

jsoo_listunits: command not found

or when using sudo you get the following error message

sudo: jsoo_listunits: command not found

Solutions to jsoo_listunits: command not found

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

In Ubuntu jsoo_listunits is provided by js-of-ocaml package.

js-of-ocaml is:

Js_of_ocaml is a compiler of OCaml bytecode to JavaScript. It makes it possible to run OCaml programs in a web browser. Its key features are the following:

  • the whole language, and most of the standard library are supported;
  • the generated code can be used with any web server and browser;
  • you can use a standard installation of OCaml to compile your programs. In particular, you do not have to recompile a library to use it with Js_of_ocaml. You just have to link your program with a specific library to interface with the browser APIs.

This package contains the compiler itself.

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

sudo apt-get -y install js-of-ocaml

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

You can also use apt command to install js-of-ocaml.

sudo apt -y install js-of-ocaml

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

sudo aptitude install js-of-ocaml

Summary

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