[Lmod-users] posix require
A Lua based environment module system that reads TCL modulefiles.
Brought to you by:
rtmclay
|
From: Nick P. A. <nic...@gm...> - 2014-07-15 07:33:49
|
After updating to 5.6.3 I encountered an error.
I have all my lua installed in a custom directory, and use lua 5.2.3,
luaposix v32.
After sourcing lmod I get this error:
/opt/generic/lua/5.2.3/bin/lua:
/opt/generic/lmod/lmod/libexec/myGlobals.lua:38: variable 'posix' is not
declared
stack traceback:
[C]: in function 'error'
/opt/generic/lmod/lmod/libexec/../tools/strict.lua:36: in function '__index'
/opt/generic/lmod/lmod/libexec/myGlobals.lua:38: in main chunk
[C]: in function 'require'
/opt/generic/lmod/lmod/libexec/lmod:71: in main chunk
[C]: in ?
which easily can be fixed by passing down the add-on to a variable:
Simply do:
posix = require("posix")
instead of
require("posix")
--
Kind regards Nick
|