1. ICS LMOD¶
1.2. wtools projects¶
Wtools project automatically generates an lmod file that is installed to $PREFIX/etc/modulefiles/<project-name>.lua
which takes care of setting the environment variables so the applications in $PREFIX
can be used.
$ module use $PREFIX/etc/modulefiles
$ module load <project-name>
For the ifw project this would look something like:
$ module use $PREFIX/etc/modulefiles
$ module avail
-------------------------------- "$PREFIX/etc/modulefiles" -------------------------------
ifw
-------------------------------- /eelt/System/modulefiles --------------------------------
eeltdev (L) introot jdk/1.8.0_77 (L) python (L)
----------------------------- /usr/share/lmod/lmod/modulefiles/Core ----------------------
lmod/6.5.1 settarg/6.5.1
$ module load ifw
...
1.3. Basic commands¶
Define your environment variables in modulefiles (ex:private.lua) under directory:
$ cd $HOME/modulefiles/
$ more private.lua
local home = os.getenv("HOME")
local introot = pathJoin(home,"INTROOT")
setenv ("INTROOT", introot)
List of packages/modules available from the modulefiles in used:
$ module avail
Load the packages you need:
$ module load private introot
Save the current setting as default environment (loaded at login):
$ module save
Restore the system default environment:
$ module restore system
Restore the user default environment:
$ module restore
By default the following modules are loaded:
$ module list
Currently Loaded Modules:
1) jdk/1.8.0_77 2) python 3) eeltdev
To see what is currently set with default module eeltdev (ex: PATH
, LD_LIBRARY_PATH
modification):
$ module show eeltdev
Unload a Module:
$ module unload introot