ocaml-gettext command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ocaml-gettext: command not found
or when using sudo you get the following error message
sudo: ocaml-gettext: command not found
Solutions to ocaml-gettext: command not found
How To Fix ocaml-gettext: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ocaml-gettext is provided by libgettext-ocaml-dev package.
libgettext-ocaml-dev is:
This library provides utilities and libraries to enable localization in OCaml programs. It is based on the same principle of GNU gettext.
The package provides two libraries to do effectively translation :
- gettext-camomile : pure OCaml implementation of gettext
- gettext-stub : implementation using the gettext library.
This package contains header, OCaml library and devel tools.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libgettext-ocaml-dev
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libgettext-ocaml-dev.
sudo apt -y install libgettext-ocaml-dev
Or if you have aptitude installed you can use the following command.
sudo aptitude install libgettext-ocaml-dev
Summary
In this tutorial we learn how to fix ocaml-gettext command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.