Difference: MakingSoftwareAvailableUsingLMOD (3 vs. 4)

Revision 42016-03-11 - HinriKerstens

Line: 1 to 1
 
META TOPICPARENT name="SoftwareInstallation"

Howto create your own/group software modules

Introduction

Line: 49 to 50
  local version = "VERSION"
Changed:
<
<
--local base = "/hpc/local/$MY_DISTRO/$MY_GROUP/software/PROGRAM-" .. version local base = "$HOME/$MY_DISTRO/software/PROGRAM-" .. version
>
>
--local base = "/hpc/local/\$MY_DISTRO/\$MY_GROUP/software/PROGRAM-" .. version local base = "\$HOME/\$MY_DISTRO/software/PROGRAM-" .. version
  conflict("PROGRAM")
Line: 62 to 63
  EOF
Added:
>
>
 

remarks

  • In lua lines starting with -- are interpreted as comments
Line: 90 to 90
 #$echo $CLASSPATH

Also check if unloading the module restores the environment

Deleted:
<
<
 
#$module unload PROGRAM
Added:
>
>

Share

Once you are convinced that the module file is working correctly please let your group members also benefit from it. Sharing is easy!

  • Move the install directory:
#$mv $HOME/$MY_DISTRO/software/PROGRAM-VERSION  /hpc/local/$MY_DISTRO/$MY_GROUP/software/PROGRAM-VERSION
  • Make adjustment in the "local base" line in the module file (see remarks) and move the module file:
#$mv $HOME/$MY_DISTRO/etc/modulefiles/PROGRAM  /hpc/local/$MY_DISTRO/$MY_GROUP/etc/modulefiles/PROGRAM

Allow your group members to add (module files) of other version of the program by making the PROGRAM directory writable:

#$chmod 770 /hpc/local/$MY_DISTRO/$MY_GROUP/etc/modulefiles/PROGRAM
 -- Hinri Kerstens - 2016-03-09

Comments

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback