ncgen3 command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ncgen3: command not found
or when using sudo you get the following error message
sudo: ncgen3: command not found
Solutions to ncgen3: command not found
How To Fix ncgen3: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ncgen3 is provided by netcdf-bin package.
netcdf-bin is:
Contains the programs ncdump and ncgen which convert NetCDF files to ASCII and back, respectively. NetCDF (network Common Data Form) is an interface for scientific data access and a freely-distributed software library that provides an implementation of the interface. The netCDF library also defines a machine-independent format for representing scientific data. Together, the interface, library, and format support the creation, access, and sharing of scientific data.
To fix this problem, we can install more using the command below.
sudo apt-get -y install netcdf-bin
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install netcdf-bin.
sudo apt -y install netcdf-bin
Or if you have aptitude installed you can use the following command.
sudo aptitude install netcdf-bin
Summary
In this tutorial we learn how to fix ncgen3 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.