lua-users home
lua-l archive

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


On 23 December 2015 at 21:33, Michał Łowicki <mlowicki@gmail.com> wrote:
> Hi,
>
> 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/core.so':
>
>         dlopen(/usr/local/lib/lua/5.3/socket/core.so, 6): Symbol not found:
> _lua_getctx
>
>   Referenced from: /usr/local/lib/lua/5.3/socket/core.so
>
>   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.
>
> --
> BR,
> Michał Łowicki

Looks like you compiled luasocket against Lua 5.2 headers; but are
running under Lua 5.3