antlr-config command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
antlr-config: command not found
or when using sudo you get the following error message
sudo: antlr-config: command not found
Solutions to antlr-config: command not found
How To Fix antlr-config: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu antlr-config is provided by libantlr-dev package.
libantlr-dev is:
ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a language tool that provides a framework for constructing recognizers, compilers, and translators from grammatical descriptions containing C++ or Java actions [You can use PCCTS 1.xx to generate C-based parsers].
These are the static libraries for C++.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libantlr-dev
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libantlr-dev.
sudo apt -y install libantlr-dev
Or if you have aptitude installed you can use the following command.
sudo aptitude install libantlr-dev
Summary
In this tutorial we learn how to fix antlr-config command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.