Hi,
I wasn't sure if the stdlib project for Lua was still active. Reuben, I've
sent this message to you personally just this once in the event that the
mailing list isn't active; just let me know if you do read the mailing list
still.
I downloaded both the latest Compat-5.1 and the latest stdlib, installed them
in the correct path (/usr/local/share/lua50), and tried to execute the
following script (nothing crazy -- just seeing if it compiles):
#!/usr/bin/lua
require "compat-5.1"
require "io.getopt"
I get:
$ ./test_script
/usr/bin/lua: /usr/local/share/lua50/rex-ext.lua:7: bad argument #1 to
`setmetatable' (table expected, got nil)
stack traceback:
[C]: in function `setmetatable'
/usr/local/share/lua50/rex-ext.lua:7: in function `init'
/usr/local/share/lua50/compat-5.1.lua:200: in function `require'
/usr/local/share/lua50/string/xml.lua:6: in function `init'
/usr/local/share/lua50/compat-5.1.lua:200: in function `require'
/usr/local/share/lua50/string-ext.lua:8: in function `init'
/usr/local/share/lua50/compat-5.1.lua:200: in function `require'
/usr/local/share/lua50/io/getopt.lua:7: in function `init'
/usr/local/share/lua50/compat-5.1.lua:200: in function `require'
./make_init.d_script:4: in main chunk
[C]: ?
I haven't yet dug into the stdlib code. Actually, before digging in, I was
interested to see first what the status was on the project. Is scripting in
Lua still a sensible direction to push towards? Or has there been too much
resistance from the Lua community in general?
If stdlib is current, then do you perhaps know what the problem might be?
According to "lua -v" I'm on version 5.0.2, which came from the Debian
testing repository (Debian versions 5.0.2-5.1).
Thanks for you help,
Sukant Hajra
|