lua-users home
lua-l archive

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


On Tue, Aug 14, 2012 at 11:18 PM, Mike McGonagle <mjmogo@gmail.com> wrote:
> working properly. The socket stuff is complaining about now being able
> to find the "core" module, or something like that.

You have to put the modules where they are going to be found.
LuaSocket looks for the binary core as 'socket.core', so it should be
installed here::

/usr/local/share/lua/5.1/socket/core.so

Which does depend on your actual module path, try

$ lua -e "print(package.cpath)"

to see what directory path your Lua is searching.

Remember the rule: in that string, '?' is replaced with the module
name, with any '.' replaced with '/'.

steve d.