|
Article ID: 115
Last updated: 20 Dec, 2021
See the commands described below to learn how to use modules. Note: Software programs on NAS systems are managed either as modules or packages. For information about using software programs that are managed as packages, see Using Software in the NetBSD Packages Collection. Using ModulesTo find out what software modules are available on NAS systems, run the module avail command. You can also view a short description of every module by running module whatis, or find information about a specific module by running module help modulename. To use the software provided in a module, you must first load the module by running the module load command. You can load several modules at the same time, as follows:
Testing ModulesNew software modules and new versions of existing modules are sometimes available for testing before they are released for general use. To access the test modules, run:
If you use the test modules, please send your feedback to support@nas.nasa.gov. Let us know whether the modules worked well or, if you had any problems, describe any steps you took to reproduce them. Note: Test modules may be moved into production or deleted without notice. Additional Module CommandsSome useful module commands include:
For more information, see man module. TIP: If the module commands don't work, ensure that the following line
is included in your .cshrc or .profile file:
Creating Your Own ModulefilesIf you maintain software for your own use or to share with your group, it may be useful to create modulefiles that can be loaded, purged, and so on, just like any other modulefile. To create your own modulefile, you can simply copy an existing modulefile to your directory (commonly named /u/your_username/privatemodules), and edit it as appropriate. First, find a module that you want to mimic and run module show module_name. The modulefile itself will be listed at the top of the module show output. You can find most available modulefiles in the /nasa/modulefiles/toss3 directory. Here are some common features in well-designed modulefiles:
If you plan to share this software with other users in your group, make sure that they have read permission to every file and directory, and execute permission on all directories and the executables in the software's bin directory. In order to see your newly created modulefile in the output of the module avail command, run the module use command first, as follows:
Note: The -a option puts the new modulefile at the end of module avail output. Without it, the modulefile will be listed at the top.
Also read
|