From 75f51d5bc7367af6a52700db989499162e8525e8 Mon Sep 17 00:00:00 2001
From: Diego Nehab
LuaSocket version 2.0.1 is now available for download! It is
-compatible with Lua 5.0 and has been tested on
-Windows XP, Linux, and Mac OS X.
+compatible with Lua 5.0 and Lua 5.1, and has
+been tested on Windows XP, Linux, and Mac OS X. Chances
+are it works well on most UNIX systems.
@@ -103,13 +104,13 @@ contains several examples, this user's manual and basic test procedures.
Danilo Tuler is maintaining Win32 binaries for LuaSocket, which are also
available from LuaForge. These are compatible with the
-LuaBinaries
-available from LuaForge.
+LuaBinaries,
+also available from LuaForge.
-For those that want to give LuaSocket a quick try, download the
-stand-alone archive and unpack everything into
+If you are using Lua 5.0, and want to give LuaSocket a quick
+try, download the stand-alone archive and unpack everything into
a directory, say c:\luasocket. Then set LUA_INIT to load
the compat-5.1.lua and set LUA_PATH and
LUA_CPATH to look for files in the current directory:
@@ -135,6 +136,23 @@ Lua 5.0.2 Copyright (C) 1994-2004 Tecgraf, PUC-Rio
--> the source to this web page gets dumped to terminal
+
+If you are using Lua 5.1, you shouldn't use
+compat-5.1.lua. Just unpack the standalone
+directory, set LUA_CPATH and LUA_PATH, and
+you should be ready to run:
+
+
+ When you are done playing, take a look at the
installation section of the manual to find out
how to properly install the library. LuaSocket 2.0.1 uses the new package proposal for Lua 5.1.
+ LuaSocket 2.0.1 uses the new package system for Lua 5.1.
All Lua library developers are encouraged to update their libraries so that
all libraries can coexist peacefully and users can benefit from the
standardization and flexibility of the standard.
-The proposal was considered important enough by some of us to justify
-early adoption, even before release of Lua 5.1.
-Thus, a compatibility module
+Those stuck with Lua 5.0 will need the
compat-5.1
-has been released in conjunction with Roberto Ierusalimschy and The Kepler Project team.
-It implements the Lua 5.1 package proposal on top of Lua 5.0. As far as LuaSocket is concerned, this means that whoever is
-deploying a non-standard distribution of LuaSocket will probably
-have no problems customizing it. Here we will only describe the standard distribution. If the standard doesn't meet your
-needs, we refer you to the Lua discussion list, where any question about
-the package scheme will likely already have been answered.
-
+c:\luasocket\> set LUA_CPATH=?.dll
+c:\luasocket\> set LUA_PATH=?.lua
+c:\luasocket\> lua5.1
+Lua 5.1 Copyright (C) 1994-2006 Lua.org, PUC-Rio
+> http = require"socket.http"
+> print(http.request"http://www.cs.princeton.edu/~diego/professional/luasocket/"
+--> the source to this web page gets dumped to terminal
+
+
Installation
-
Here we will only describe the standard distribution. +If the standard doesn't meet your needs, we refer you to the +Lua discussion list, where any question about the package +scheme will likely already have been answered.
Naturally, on Unix systems, core.dll -would be replaced by core.so. +would be replaced by core.so.
In order for the interpreter to find all LuaSocket components, three @@ -99,6 +96,11 @@ the interpreter to load the compat-5.1.lua module at startup:
LUA_INIT=@<LDIR>/compat-5.1.lua ++This is only need for Lua 5.0! Lua 5.1 comes with +the package system bult in, of course. +
+
The other two environment variables instruct the compatibility module to
look for dynamic libraries and extension modules in the appropriate
diff --git a/etc/README b/etc/README
index 5a919cd..cfd3e37 100644
--- a/etc/README
+++ b/etc/README
@@ -64,9 +64,9 @@ work. Just run
lua check-links.lua [-n] {