lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I've just compiled luasocket and while trying to run sample code (require "socket") I'm getting:

bash-3.2$ ./lua-5.3.1/src/lua code/soc.lua 

./lua-5.3.1/src/lua: error loading module 'socket.core' from file '/usr/local/lib/lua/5.3/socket/':

        dlopen(/usr/local/lib/lua/5.3/socket/, 6): Symbol not found: _lua_getctx

  Referenced from: /usr/local/lib/lua/5.3/socket/

  Expected in: dynamic lookup

stack traceback:

        [C]: in ?

        [C]: in function 'require'

        /usr/local/share/lua/5.3/socket.lua:12: in main chunk

        [C]: in function 'require'

        code/soc.lua:3: in main chunk

        [C]: in ?

any help will be much appreciated.

Michał Łowicki