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.
-
Command ''ml'' is a useful frontend to the most used module commands (see ''ml --help'' for details).
+
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 26:
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.1674654075.txt.gz · Last modified: by jansen