You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install lua http SUCCEEDS though I get some WARNINGS Warning: /usr/local/lib/lua/5.1/compat53/table.so is not tracked by this installation of LuaRocks. Moving it to /usr/local/lib/lua/5.1/compat53/table.so~ Warning: /usr/local/lib/lua/5.1/compat53/string.so is not tracked by this installation of LuaRocks. Moving it to /usr/local/lib/lua/5.1/compat53/string.so~ Warning: /usr/local/lib/lua/5.1/compat53/utf8.so is not tracked by this installation of LuaRocks. Moving it to /usr/local/lib/lua/5.1/compat53/utf8.so~
My example http_lua code works lua lua_http.lua :status 200 date Mon, 26 Apr 2021 15:14:26 GMT content-type application/json content-length 233 connection keep-alive server gunicorn/19.9.0 access-control-allow-origin * access-control-allow-credentials true { "args": {}, "headers": { "Host": "httpbin.org", "User-Agent": "lua-http/0.4", "X-Amzn-Trace-Id": "Root=1-6086d8d2-0807e50f0cf27c5d3f1c393b" }, "origin": "103.35.127.33", "url": "http://httpbin.org/get" }
@atibdialpad as Russell notes; you need lua headers installed. on debian based distros you can usually find them in the liblua5.x-dev package for your lua version.
Activity
atibdialpad commentedon Apr 27, 2021
@daurnimator any ideas/suggestions what might be going wrong here ?
RussellHaley commentedon Apr 28, 2021
Hi,
I think you need to install liblua5.3-dev to get the header files.
sudo apt install liblua5.3-dev.The reason it works for Lua5.1 is because the LuaRocks installation pull in liblua5.1-dev files.
daurnimator commentedon May 2, 2021
@atibdialpad as Russell notes; you need lua headers installed. on debian based distros you can usually find them in the liblua5.x-dev package for your lua version.