FAQ Database Discussion Community

lua 5.3 + luasocket 3.0rc1-2: undefined symbol: luaL_setfuncs

I have Luasocket 3.0rc1-2 installed through luarocks with Lua 5.3 running on the server. When I run a script requiring luasocket on nginx (1.8.0) with LuaJIT (2.1), it produces an error message: lua entry thread aborted: runtime error: error loading module 'socket.core' from file '/usr/local/lib/lua/5.3/socket/core.so': /usr/local/lib/lua/5.3/socket/core.so: undefined symbol: luaL_setfuncs On...

Luarocks can't install a library

I want to install this library: https://luarocks.org/modules/dodo/lua-dbus I do luarocks search lua-dbus There are 0 results. sudo luarocks install lua-dbus doesn't install anything as well. The problem is only with this library, because I can search for other libraries on luarocks, for example luarocks search socket gives plenty of matches....

With multiple versions of Lua installed is it possible to specify which one luarock to install to?

I have both Lua 5.1 and Lua 5.2 installed on Linux. When using luarocks to install a package is it possible to pass on option to luarocks that specifies which version of Lua the rock should be installed for?

Luasocket + nginx error - lua entry thread aborted: runtime error: attempt to yield across C-call boundary

When I use the following script: local smtp = require("socket.smtp") local from = "[email protected]" local rcpt = "[email protected]" local msg = { headers = { to = rcpt, subject = "Hi" }, body = "Hello" } smtp.send{from = from,rcpt = rcpt,source = smtp.message(msg)} I'm getting an error message: lua entry...