From d9a1bdbf69db0470377498bc51e51768f6cee970 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Mon, 30 Jun 2003 18:55:58 +0000 Subject: [PATCH] Forgot this. --- etc/README | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 etc/README diff --git a/etc/README b/etc/README new file mode 100644 index 0000000..34b7074 --- /dev/null +++ b/etc/README @@ -0,0 +1,58 @@ +This directory contains code that is more useful than the examples. This code +*is* supported. + + lua.lua and luasocket.lua + +These are modules to suport dynamic loading of LuaSocket by the stand alone +Lua Interpreter with the use of the "require" function. For my Mac OS X +system, I place lua.lua in /usr/local/lua, luasocket.lua and the +libluasocket.dylib in /usr/local/lua/luasocket and set the following +environment variables: + + LUA_PATH=/usr/local/lua/?/?.lua + LUA_INIT=@/usr/local/lua/lua.lua + LUA_FUNCNAME=_? + LUA_LIBNAME=/usr/local/lua/?/lib?.dylib + +With that, I can run any luasocket application with the command line: + + lua -l luasocket