lablgtk2 command not found

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

Introduction

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

lablgtk2: command not found

or when using sudo you get the following error message

sudo: lablgtk2: command not found

Solutions to lablgtk2: command not found

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

In Ubuntu lablgtk2 is provided by liblablgtk2-ocaml-dev package.

liblablgtk2-ocaml-dev is:

lablgtk2 contains bindings for GTK+ 2.x and OCaml.

This package contains the development files of lablgtk.

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

sudo apt-get -y install liblablgtk2-ocaml-dev

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

You can also use apt command to install liblablgtk2-ocaml-dev.

sudo apt -y install liblablgtk2-ocaml-dev

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

sudo aptitude install liblablgtk2-ocaml-dev

Summary

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