lemon command not found

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

Introduction

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

lemon: command not found

or when using sudo you get the following error message

sudo: lemon: command not found

Solutions to lemon: command not found

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

In Ubuntu lemon is provided by lemon package.

lemon is:

Lemon is an LALR(1) parser generator for C or C++. It does the same job as bison and yacc. But lemon is not another bison or yacc clone. It uses a different grammar syntax which is designed to reduce the number of coding errors. Lemon also uses a more sophisticated parsing engine that is faster than yacc and bison and which is both reentrant and thread-safe. Furthermore, Lemon implements features that can be used to eliminate resource leaks, making is suitable for use in long-running programs such as graphical user interfaces or embedded controllers.

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

sudo apt-get -y install lemon

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

You can also use apt command to install lemon.

sudo apt -y install lemon

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

sudo aptitude install lemon

Summary

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