Dear Maintainer,
If I apply the procedure described in the documentation, I get:
lua5.1: /tmp/sputnik/sputnik.cgi:13: attempt to index global 'wsapi' (a nil value)
stack traceback:
/tmp/sputnik/sputnik.cgi:13: in main chunk
[C]: ?
This is due to the generated sputnik.cgi file:
require("wsapi.cgi")
wsapi.cgi.run(my_app)
while other lua source file, for example wsapi/common.lua, use require
like this:
local os = require "os"
If I change to:
local wsapi_cgi = require("wsapi.cgi")
wsapi_cgi.run(my_app)
it goes a little farther:
lua5.1: /usr/share/lua/5.1/wsapi/common.lua:299: attempt to index local 'headers' (a nil value)
stack traceback:
/usr/share/lua/5.1/wsapi/common.lua:299: in function 'run'
/usr/share/lua/5.1/wsapi/cgi.lua:19: in function 'run'
/tmp/sputnik/sputnik.cgi:13: in main chunk
[C]: ?
… that I do not know how to fix. It looks like version incompatibility
between library and language.
Regards,