lua-users home
lua-l archive

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


Hi,

Here's the directory structure:

/usr/local/share/lua/5.1/socket.lua (etc)
/usr/local/lib/lua/5.1/lsocket.so

Change lsocket.so to, say, csocket.so. Then change require"lsocket" to
require"csocket" in socket.lua.

The problem is that you have l?.so in your path, so that require"socket"
is find lsocket.so before finding socket.lua.

[]s,
Diego.