lua-users home
lua-l archive

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


> appliance:/var/tmp> ln -s socket.so.2.0.2 socket.so
> appliance:/var/tmp> ./lua
> > require "socket"
> error loading module 'socket' from file './socket.so':
>         Unable to resolve symbol

This is *not* the way to use LuaSocket! You need to install it somewhere.
require "socket" should load socket.lua which in turn loads socket.core,
typically from socket/core.so.

The unresolved symbol in the message above is probably luaopen_socket,
which indeed does not exist in socket.so; it exports luaopen_socket_core.