byaccj command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
byaccj: command not found
or when using sudo you get the following error message
sudo: byaccj: command not found
Solutions to byaccj: command not found
How To Fix byaccj: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu byaccj is provided by byacc-j package.
byacc-j is:
BYACC/J is an extension of the Berkeley v 1.8 YACC-compatible parser generator.
Standard YACC takes a YACC source file, and generates one or more C files from it, which if compiled properly, will produce a LALR-grammar parser. This is useful for expression parsing, interactive command parsing, and file reading. Many megabytes of YACC code have been written over the years.
This is the standard YACC tool that is in use every day to produce C/C++ parsers.
I have added a “-J” flag which will cause BYACC to generate Java source code, instead. So there finally is a YACC for Java now!
To fix this problem, we can install more using the command below.
sudo apt-get -y install byacc-j
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install byacc-j.
sudo apt -y install byacc-j
Or if you have aptitude installed you can use the following command.
sudo aptitude install byacc-j
Summary
In this tutorial we learn how to fix byaccj command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.