Campuses:
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
computing:department:unix:software:modules [2015/08/13 18:34] – Document moved from computing:department:unix:modules allan | computing:department:unix:software:modules [2015/09/09 19:25] (current) – allan | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Environment Modules ====== | ====== Environment Modules ====== | ||
- | Environment Modules is a framework | + | Environment Modules is a system |
+ | |||
+ | It includes the ability to list all software packages currently available in the Modules system, load new software package into your environment, list all loaded software packages, and unload | ||
We use this system, rather than simply including all software in your default PATH, as it permits us to offer alternate versions of the same software, or to provide packages which might normally interfere with each other. | We use this system, rather than simply including all software in your default PATH, as it permits us to offer alternate versions of the same software, or to provide packages which might normally interfere with each other. | ||
Line 22: | Line 24: | ||
fastx/ | fastx/ | ||
idl/ | idl/ | ||
+ | |||
+ | </ | ||
Or (perhaps more useful): | Or (perhaps more useful): | ||
Line 58: | Line 62: | ||
</ | </ | ||
- | To see what packages are currently loaded | + | The command for loading a package into your environment is '' |
+ | module load idl | ||
+ | |||
+ | If a specific version of a package is desired, the command can be expanded to module load ''< | ||
+ | module load mathematica/ | ||
+ | |||
+ | To see what packages are currently loaded, the command is '' | ||
< | < | ||
abcd@lemming> | abcd@lemming> | ||
Line 65: | Line 75: | ||
</ | </ | ||
- | The command for loading a package into a user's environment is '' | ||
- | |||
- | If a specific version of a package is desired, the command can be expanded to module load ''< | ||
- | module load mathematica/ | ||
The command to unload a package is '' | The command to unload a package is '' | ||
+ | |||
+ | ===== Adding modules to your login scripts ===== | ||
+ | |||
+ | The previous changes will allow you to manage your environment in the current shell environment, | ||
+ | |||
+ | To manage your default environment through modules, begin by adding to the end of your ~/.bashrc or ~/.cshrc startup script the line | ||
+ | module load null | ||
+ | | ||
+ | The " | ||
+ | |||
+ | Next, to add a module to your default environment, | ||
+ | module initadd [module name] | ||
+ | |||
+ | This will alter the " | ||
+ | |||
+ | To disable a default module, use " | ||
+ | module initrm [module name] | ||
+ | |||
+ | This removes that module from the module line in your startup script. |