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, whisper@oz.net 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

http://lua-users.org/lists/lua-l/2005-02/msg00179.html

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

http://lua-users.org/wiki/BuildingModules

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 :)

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.com/