Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP XC System Software: User's Guide > Chapter 3 Configuring Your Environment with Modulefiles

Creating a Modulefile

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

If you download or install a software package into a private directory, you can create your own (private) modulefile for products that you install by using the following general steps:

  1. Create a private modulefiles directory.

  2. Copy an existing modulefile (to use as a template), or copy the software's corresponding default modulefile from under /opt/modules/modulefiles, into the private modulefiles directory.

  3. Edit and modify the modulefile accordingly.

  4. Register the private directory with the module use command.

To install a variant of a product or package already on the system, copy the existing modulefile for that product to an appropriate name, and edit it accordingly to accommodate the newly-installed product variant.

To install a random product or package should look at the manpages for modulefiles, examine the existing modulefiles, and create a new modulefile for the product being installed using existing modulefiles as a template. To view modules manpages, load the modules modulefile and then display the modulefile manpage:

$ module load modules
$ man modulefile

Read the manpages for modules so that you know how to create a directory for your private modulefiles and how to use the module use <dirname> module command to use your private modules.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2003 Hewlett-Packard Development Company, L.P.