gprbuild command not found

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

Introduction

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

gprbuild: command not found

or when using sudo you get the following error message

sudo: gprbuild: command not found

Solutions to gprbuild: command not found

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

In Ubuntu gprbuild is provided by gprbuild package.

gprbuild is:

A set of tools for processing GNAT project files: gprconfig detects available compilers, gprbuild runs them; gprslave helps distributing the build work across the network; gprinstall copies the objects to their final destination; gprclean removes them. The default configuration supports Ada, Assembler, C, C++, Fortran, and can be extended to support user source processing tools.

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

sudo apt-get -y install gprbuild

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

You can also use apt command to install gprbuild.

sudo apt -y install gprbuild

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

sudo aptitude install gprbuild

Summary

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