ocamlviz-gui command not found

In this troubleshooting guide we learn how to fix ocamlviz-gui command not found error message

Introduction

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

ocamlviz-gui: command not found

or when using sudo you get the following error message

sudo: ocamlviz-gui: command not found

Solutions to ocamlviz-gui: command not found

How To Fix ocamlviz-gui: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ocamlviz-gui is provided by ocamlviz package.

ocamlviz is:

Ocamlviz gives the ability to instrument an existing code, in real time, with lightweight monitoring annotations. Ocamlviz can also be used as a debugging tool.

Here are a few possibilities provided by Ocamlviz:

  • observe details about the garbage collector
  • observe how many times the program goes through a point
  • make a set of values (any) and count its cardinal number and its size in the heap
  • observe how much time passed between two points of the program
  • observe the value of integers, floating-point numbers, booleans and strings
  • observe details about hash tables, like the number of empty buckets, or the filling rate
  • etc

This package provides two sorts of client output:

  • an ASCII client, the monitoring is displayed in a file
  • a Graphical User Interface, using Lablgtk2, that allows, for instance, displaying data in a graph

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

sudo apt-get -y install ocamlviz

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

You can also use apt command to install ocamlviz.

sudo apt -y install ocamlviz

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

sudo aptitude install ocamlviz

Summary

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