lua-users home
lua-l archive

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

On Apr 23, 2005, at 00:37, wrote:

My current problem is that LuaSocket won't get past "require socket", yet it's in the path per the LuaSocket doc. Nor will Lua itself read LUA_INIT, which mihgt solve the LuaSocket requre problem.

As mentioned by Diego, lua-5.1-work5 is very much bleeding edge, so you need to make some adjustment to LuaSocket to make it work all together.

"Change a handful of lines of code. Remove compat.h, change luaL_module to luaL_openlib.
package.loaded["base"]=_G in socket.lua thats it."
-- David Burgess, Feb 2005

Here are some additional instructions by Mike Pall on how to build modules for 5.1:

The bad news being that all this requires some work. The good news being that it does work pretty smoothly once you are familiar with the proper incantations :)


PA, Onnay Equitursay