lua-users home
lua-l archive

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


	Hi Peter

Luaexpat is installed, but I can't see lxp.lua there, the only files that
are available are:

ser:/usr/src/luaexpat-1.1/src/lxp# ls
lom.lua
ser:/usr/src/luaexpat-1.1/src/lxp# cd ..
ser:/usr/src/luaexpat-1.1/src# ls
lxp  lxp.def  lxplib.c    lxplib.h  lxplib.o  lxp.so.1.1.0
ser:/usr/src/luaexpat-1.1/src#
	This is not LuaExpat installation directory.  Note that
Lua tries to load a Lua module first.  If it is not found, then it
tries a binary module, as can be seen in the error message from the
other message:

Lua 5.1.3  Copyright (C) 1994-2008 Lua.org, PUC-Rio
require "xmlrpc.http"
./xmlrpc.lua:7: module 'lxp' not found:
     no field package.preload['lxp']
     no file './lxp.lua'
     no file '/usr/local/share/lua/5.1/lxp.lua'
     no file '/usr/local/share/lua/5.1/lxp/init.lua'
     no file '/usr/local/lib/lua/5.1/lxp.lua'
     no file '/usr/local/lib/lua/5.1/lxp/init.lua'
     no file '/usr/share/lua/5.1/lxp.lua'
     no file '/usr/share/lua/5.1/lxp/init.lua'
     no file './lxp.so'
     no file '/usr/local/lib/lua/5.1/lxp.so'  -- lxp should be here!
     no file '/usr/lib/lua/5.1/lxp.so'

	Note that LuaExpat is a binary module (which should be
installed in `lib`), while lom.lua is a Lua module (which should
be installed in `share`).

	Regards,
		Tomas