lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


	I'm solving this problem with a LUA_PATH like:

LUA_PATH=/usr/local/lua/?;/usr/local/lua/?.lua;/usr/local/lua/?/?.lua;./?;./?.lua

	And I've installed all packages/modules/libraries in

/usr/local/lua/<package name>/

	The main file should have the name of the package.  For example:

/usr/local/lua/lxp/lxp.lua
                  /lom.lua
              /soap/soap.lua
                   /http.lua
              /xmlrpc/xmlrpc.lua
                     /http.lua

	Both libraries have a main file and another one that
depends on the main file.  Inside xmlrpc/http.lua

require"xmlrpc"

	Inside xmlrpc/xmlrpc.lua

require"lxp"
require"lxp/lom"

	Does it work for you?
		Tomas