genmk command not found

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

Introduction

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

genmk: command not found

or when using sudo you get the following error message

sudo: genmk: command not found

Solutions to genmk: command not found

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

In Ubuntu genmk is provided by pccts package.

pccts is:

PCCTS consists of ANother Tool for Language Recognition (ANTLR), a DFA-based Lexical analyzer Generator (DLG) and assorted other utilities designed for the construction of compilers and other language translators. ANTLR is a parser generator which generates recursive descent parsers which are easier to debug than the table driven bottom-up parsers created by YACC. It also provides support for the automatic generation of Abstract Syntax Trees (AST’s). Many projects have stopped using PCCTS and moved on to antlr, which is also packaged for Debian. New projects should probably look there first. However PCCTS will be maintained in Debian as long as there is interest in doing so.

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

sudo apt-get -y install pccts

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

You can also use apt command to install pccts.

sudo apt -y install pccts

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

sudo aptitude install pccts

Summary

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