Re: [Lmod-users] posix require
A Lua based environment module system that reads TCL modulefiles.
Brought to you by:
rtmclay
|
From: Robert M. <mc...@ta...> - 2014-07-15 14:45:43
|
Thanks for the Bug Report! This is now fixed in the git repos and will be
part of the next release.
R.
On Tue, Jul 15, 2014 at 3:33 AM, Nick Papior Andersen <nic...@gm...>
wrote:
> 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
>
>
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> _______________________________________________
> Lmod-users mailing list
> Lmo...@li...
> https://lists.sourceforge.net/lists/listinfo/lmod-users
>
>
--
Robert McLay, Ph.D.
TACC
Manager, HPC Software Tools
(512) 232-8104
|