SystemsSoftwareToolsDebuggersPerformance Programming Editors GNU Tools Shells & Scripting
|
Modules Approach to Software ManagementNERSC has implemented and enhanced the modules approach to managing the user environment for different software versions on all production machines. The distinct advantage of the modules approach is that the user is no longer required to explicitly specify paths for different executable versions, and try to keep the MANPATH and related environment variables coordinated. With the modules approach, users simply ``load'' and ``unload'' modules to control their environment. Module commandsTo get a usage list of module options type the following (the listing has been abbreviated to only those commands discussed in this webpage) :
% module help
Available Commands and Usage:
+ add|load modulefile [modulefile ...]
+ rm|unload modulefile [modulefile ...]
+ switch modulefile1 modulefile2
+ display modulefile [modulefile ...]
+ avail path [path]
+ list
+ help modulefile [modulefile ...]
Loading Modules into Your Default EnvironmentYou can modify your environment so that certain modules are loaded whenever you log in. Put your changes in one of the following files, depending on your shell.
Here is an example of a .cshrc.ext file with commands to load modules. Notice that, modules specific to a platform are put inside of if-then blocks. if ($NERSC_HOST == "franklin") then # Replace the following line with personal settings for franklin module load fftw endif |
![]() |
Page last modified: Fri, 09 Apr 2010 23:31:55 GMT Page URL: http://www.nersc.gov/nusers/resources/software/os/modules.php Web contact: webmaster@nersc.gov Computing questions: consult@nersc.gov Privacy and Security Notice |
![]() |