antlr4 command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
antlr4: command not found
or when using sudo you get the following error message
sudo: antlr4: command not found
Solutions to antlr4: command not found
How To Fix antlr4: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu antlr4 is provided by antlr4 package.
antlr4 is:
ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files. It’s widely used to build languages, tools, and frameworks. From a grammar, ANTLR generates a parser that can build and walk parse trees.
To fix this problem, we can install more using the command below.
sudo apt-get -y install antlr4
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install antlr4.
sudo apt -y install antlr4
Or if you have aptitude installed you can use the following command.
sudo aptitude install antlr4
Summary
In this tutorial we learn how to fix antlr4 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.