[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaSocket & require & 5.1 howto?
- From: PA <petite.abeille@...>
- Date: Sat, 5 Feb 2005 20:33:58 +0100
On Feb 05, 2005, at 16:16, David Burgess wrote:
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.
Ok. I tried the above. Removed '#include "compat-5.1.h"' from
luasocket.c and changed luaL_module() to luaL_openlib(). In socket.lua
added "package.loaded["base"]=_G" as the first statement. Recompiled.
Now I'm getting "error loading package `lsocket' (file is not a
bundle)":
lua: .../Downloads/luasocket-2.0-beta3/lua/socket.lua:15: error loading
package `lsocket' (file is not a bundle)
stack traceback:
[C]: in function `require'
.../Downloads/luasocket-2.0-beta3/lua/socket.lua:15: in main
chunk
[C]: in function `require'
Example.lua:179: in main chunk
[C]: ?
What did I miss?
Thanks!
Cheers
--
PA, Onnay Equitursay
http://alt.textdrive.com/