Usually there is a default module for a specific package, marked with ''(D)'' in the list of available modules. Typing just ''module load GCC'' will load the GCC module marked as default.
Usually there is a default module for a specific package, marked with ''(D)'' in the list of available modules. Typing just ''module load GCC'' will load the GCC module marked as default.
Version numbers and toolchains (everything after the / in the module name) can usually be abbreviated, eg ''module load GCC/11'' would work as well.
Version numbers and toolchains (everything after the / in the module name) can usually be abbreviated, eg ''module load GCC/11'' would work as well.
+
+
To unload a module, use ''module unload''. There is also a ''module switch'' command to swith between two modules that provide the same basic functionality, but in most cases, loading one version of something (eg ''GCC'') will unload all earlier loaded versions, so an explicit switch command is not necessary any more.
+
+
Command ''ml'' is a useful frontend to the most used module commands (see ''ml --help'' for details; also see ''module --help'' for details about module commands and options).
===== Warnings =====
===== Warnings =====
Be careful before adding a ''module load'' command to your startup files (''.bashrc'' or ''.tcshrc''); if a program needed for logging in (or for your graphical desktop) is incompatible with something in the loaded module, logging in may fail. This is especially true for loading any non-default python environment, which will not have the python modules needed to run several system utilities. And part of the modern desktop environments are written in python.\n
Be careful before adding a ''module load'' command to your startup files (''.bashrc'' or ''.tcshrc''); if a program needed for logging in (or for your graphical desktop) is incompatible with something in the loaded module, logging in may fail. This is especially true for loading any non-default python environment, which will not have the python modules needed to run several system utilities. And part of the modern desktop environments are written in python.\n
Line 24:
Line 28:
===== See also: =====
===== See also: =====
* [[Compilers]]
* [[Compilers]]
-
* [[Sfinx modules]]
+
* [[Sfinx modules]]: some special cases (for astronomical software)
-
* [[EasyBuild environment]]
+
* [[:EasyBuild environment]]: building your own modules
linux/environment_modules.1674654022.txt.gz · Last modified: by jansen