envml command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
envml: command not found
or when using sudo you get the following error message
sudo: envml: command not found
Solutions to envml: command not found
How To Fix envml: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu envml is provided by environment-modules package.
environment-modules is:
The Modules package provides for the dynamic modification of a user’s environment via modulefiles. Each modulefile contains the information needed to configure the shell for an application. Once the Modules package is initialized, the environment can be modified dynamically on a per-module basis using the module command which interprets modulefiles. Typically modulefiles instruct the module command to alter or set shell environment variables such as PATH, MANPATH, etc. modulefiles may be shared by many users on a system and users may have their own collection to supplement or replace the shared modulefiles. The modules environment is common on SGI/Crays and many workstation farms.
To fix this problem, we can install more using the command below.
sudo apt-get -y install environment-modules
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install environment-modules.
sudo apt -y install environment-modules
Or if you have aptitude installed you can use the following command.
sudo aptitude install environment-modules
Summary
In this tutorial we learn how to fix envml command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.