gant command not found

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

Introduction

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

gant: command not found

or when using sudo you get the following error message

sudo: gant: command not found

Solutions to gant: command not found

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

In Ubuntu gant is provided by gant package.

gant is:

Gant is a build tool for scripting Ant tasks using Groovy instead of XML to specify the build logic. A Gant build specification is a Groovy script and so can bring all the power of Groovy to bear directly, something not possible with Ant scripts. Whilst it might be seen as a competitor to Ant, Gant uses Ant tasks for many of the actions, so Gant is really an alternative way of doing builds using Ant, but using a programming language rather than XML to specify the build rules.

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

sudo apt-get -y install gant

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

You can also use apt command to install gant.

sudo apt -y install gant

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

sudo aptitude install gant

Summary

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