ResourcesSoftwareToolsDebuggersPerformance 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. IntroductionModules provides an easy mechanism for updating a user's environment especially the PATH, MANPATH, NLSPATH, and LD_LIBRARY_PATH environment variables to name a few. To perform this in the current shell, the modules package uses the shell's eval `command` mechanism for running a program that outputs shell commands and then executes them. Because of this there are some limitations and preferred ways for setting up the modules environment. When you get a NERSC account, your dot-files should be set up correctly to use modules. If you delete or modify these files in such a way to make modules fail, contact the the NERSC consultants for help. You can modify your environment so that certain modules are loaded whenever you log in. Use this command to have a module automatically loaded each time you log into the system: % module initadd modulename where modulename is the name of the module you want loaded. 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 ...]
Initialization of the Modules PackageIBM SPIBM does not use modules for its own software. NERSC has installed the modules package and uses it for third-party software. The initialization files are located in /usr/common/usg/etc/csh.modules and /usr/common/usg/etc/profile.modules. Sources of Information on ModulesOther information on modules can be found by reading the man pages on NERSC's IBM SP (man module). The sources can be found at the following site (http://modules.sourceforge.net/), which also requires the Tcl sources (http://www.scriptics.com/) |
Page last modified: Thu, 21 Aug 2008 01:33:25 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 |