kdev-pg-qt command not found

In this troubleshooting guide we learn how to fix kdev-pg-qt command not found error message

Introduction

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

kdev-pg-qt: command not found

or when using sudo you get the following error message

sudo: kdev-pg-qt: command not found

Solutions to kdev-pg-qt: command not found

How To Fix kdev-pg-qt: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu kdev-pg-qt is provided by kdevelop-pg-qt package.

kdevelop-pg-qt is:

KDevelop-PG-Qt is a parser generator written in readable source-code and generating readable source-code. Its syntax was inspirated by AntLR. It implements the visitor-pattern and uses the Qt library.

This package contains the kdev-pg-qt binary, the headers files generated by the KDevelop parser generator and the cmake file to find the parser.

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

sudo apt-get -y install kdevelop-pg-qt

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

You can also use apt command to install kdevelop-pg-qt.

sudo apt -y install kdevelop-pg-qt

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

sudo aptitude install kdevelop-pg-qt

Summary

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