gnatpp command not found

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

Introduction

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

gnatpp: command not found

or when using sudo you get the following error message

sudo: gnatpp: command not found

Solutions to gnatpp: command not found

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

In Ubuntu gnatpp is provided by asis-programs package.

asis-programs is:

ASIS (Ada Semantic Interface Specification) lets you develop applications to walk through the sources of your Ada programs and examine the semantic constructs.

  • asistant is an interactive command-line tool to explore the ASIS parse tree of a program.
  • gnatcheck verifies the conformance of source text to coding conventions
  • gnatelim finds out unused subprograms and eliminates them.
  • gnatmetric calculates metrics such as code complexity.
  • gnatpp is a pretty-printer which reformats Ada source text according to a default or user-specified style guide.
  • gnatstub generates an empty but compilable body for a given specification.
  • gnattest creates AUnit test skeletons and harness for a project (gnattest requires the libaunit development package to be installed)

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

sudo apt-get -y install asis-programs

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

You can also use apt command to install asis-programs.

sudo apt -y install asis-programs

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

sudo aptitude install asis-programs

Summary

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