menhir command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
menhir: command not found
or when using sudo you get the following error message
sudo: menhir: command not found
Solutions to menhir: command not found
How To Fix menhir: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu menhir is provided by menhir package.
menhir is:
Menhir is a LR(1) parser generator for the OCaml programming language. It is mostly compatible with the ocamlyacc parser generator provided with the OCaml system, and has the following enhancements over ocamlyacc:
- it accepts LR(1) grammars,
- it offers parameterized nonterminal symbols as well as a library of standard definitions,
- it explains conflicts in terms of the grammar,
- it allows grammar specifications to be split over multiple files and parametrized by OCaml modules,
- it produces reentrant parsers.
To fix this problem, we can install more using the command below.
sudo apt-get -y install menhir
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install menhir.
sudo apt -y install menhir
Or if you have aptitude installed you can use the following command.
sudo aptitude install menhir
Summary
In this tutorial we learn how to fix menhir command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.