I'm trying to ultimately install Lmod
so am working my way there. OS is Red Hat 8.7 (RHEL, Ootpa). I'm following the instructions on https://lmod.readthedocs.io/en/latest/030_installing.html
I have installed lua
:
#$ lua --version
Lua 5.1.4.9-rtm Copyright (C) 1994-2008 Lua.org, PUC-Rio
And installed luarocks
in order to install luaposix.
#$ luarocks --version
/usr/local/bin/luarocks 3.9.2
LuaRocks main command-line interface
But when I actually try to run any luarocks
commands other than -h
or --version
I get to following error:
#$ luarocks install luaposix
/usr/local/bin/lua: /usr/local/share/lua/5.1/luarocks/fs/lua.lua:1048: attempt to call field 'geteuid' (a nil value)
stack traceback:
/usr/local/share/lua/5.1/luarocks/fs/lua.lua:1048: in function </usr/local/share/lua/5.1/luarocks/fs/lua.lua:1047>
(tail call): ?
/usr/local/share/lua/5.1/luarocks/cmd.lua:655: in function 'run_command'
/usr/local/bin/luarocks:38: in main chunk
[C]: ?
I have searched for the error and found some suggestions that I need to install luaposix to fix it... but that is what I am trying to achieve by using luarocks, so am a bit stumped. Any advice would be appreciated.