• download lua
  • unzip
  • check that intel compiler modules are unloaded
  • > make linux
  • > make local
  • > mv install ~/modules/lua/5.2.1
  • edit modfiles:

 

> cat modules/modfiles/lua/5.2.1

#%Module1.0

proc ModulesHelp { } {

  puts stderr “This module sets up lua 5.2.1 in your environment.”

}

 

module-whatis “This module sets up lua 5.2.1 in your environment.”

 

set LUA_DIR /global/home/users/kigumen/modules/lua/5.2.1

setenv LUA_DIR $LUA_DIR

prepend-path PATH       $LUA_DIR/bin

prepend-path MANPATH    $LUA_DIR/man

  • add to .bashrc

if [ -d “/global/home/users/kigumen/modules/modfiles” ] ; then    MODULEPATH=”$MODULEPATH:/global/home/users/kigumen/modules/modfiles”

fi

  • add to .bashrc module load lua
Advertisements