nant command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
nant: command not found
or when using sudo you get the following error message
sudo: nant: command not found
Solutions to nant: command not found
How To Fix nant: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu nant is provided by nant package.
nant is:
NAnt is different than Make. Instead of a model where it is extended with shell-based commands, NAnt is extended using task classes. Instead of writing shell commands, the configuration files are XML-based, calling out a target tree where various tasks get executed. Each task is run by an object that implements a particular Task interface.
NAnt supports different target frameworks:
- Microsoft .NET Framework version 1.0 through 4.0, plus Silverlight
- Mono 1.0 through 4.0
To fix this problem, we can install more using the command below.
sudo apt-get -y install nant
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install nant.
sudo apt -y install nant
Or if you have aptitude installed you can use the following command.
sudo aptitude install nant
Summary
In this tutorial we learn how to fix nant command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.