[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 16:23:22 +0100
On Feb 05, 2005, at 16:16, David Burgess wrote:
Is that luasocket-2.0-beta2?
beta3
Where do I found that? I can only see "LuaSocket version 2.0 beta".
http://luasocket.luaforge.net/home.html#download
How do I use LuaSocket with Lua 5.1?
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.
That's it... :P
LUA_INIT=@/Users/diego/tec/luasocket/lua.lua
disappears in 5.1
It means the named script will run at lua startup
LUA_PATH=/Users/diego/tec/luasocket/?.lua;?.lua
Where to find the lu scripts
LUA_PATHLIB=/Users/diego/tec/luasocket/?.dylib;?.dylib
becomes LUA_CPATH in 5.1 , where to find the C libraries
Ok. So all this LUA_* stuff is obsolete in Lua 5.1, right?
Then use luasocket beta3
Where can I find it? Got an URL?
Thanks!
Cheers
--
PA, Onnay Equitursay
http://alt.textdrive.com/