cup command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
cup: command not found
or when using sudo you get the following error message
sudo: cup: command not found
Solutions to cup: command not found
How To Fix cup: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu cup is provided by cup package.
cup is:
CUP is the “Constructor of Useful Parsers”, a system for generating parsers from simple LALR specifications. It serves the same role as the widely used program YACC and in fact offers most of the features of YACC. However, CUP is written in Java, uses specifications including embedded Java code, and produces parsers which are implemented in Java.
To fix this problem, we can install more using the command below.
sudo apt-get -y install cup
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install cup.
sudo apt -y install cup
Or if you have aptitude installed you can use the following command.
sudo aptitude install cup
Summary
In this tutorial we learn how to fix cup command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.