To install module
from source, we need to download tarball of the required version, unpack it and install using make
.
Different releases of module
can be find here.
⟩ wget https://github.com/cea-hpc/modules/releases/download/v5.5.0/modules-5.5.0.tar.gz
⟩ tar xfv modules-5.5.0.tar.gz
We can provide installation path and default module files to reside during the configuration.
⟩ cd modules-5.5.0
⟩ ./configure --prefix ~/.local/Modules --modulefilesdir ~/.local/Modules/modulefiles
Now install the files using make
.
make
make install
Initialize on shell start
Source the module
for the specific shell currently in use by its config file (for fish
), or .bashrc
or .zshrc
.
Add these lines to the file.
source /home/nitin/local/Modules/init/fish
source /home/nitin/local/Modules/init/fish_completion