lua-users home
lua-l archive

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


Hi,

I have successfully installed luaxmlrpc, but when I am not able to load it:

ser:/usr/src/luaxmlrpc-1.0b# lua
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'
    no file '/usr/lib/lua/5.1/lxp.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
    [C]: in function 'require'
    ./xmlrpc.lua:7: in main chunk
    [C]: in function 'require'
    /usr/local/share/lua/5.1/xmlrpc/http.lua:8: in main chunk
    [C]: in function 'require'
    stdin:1: in main chunk
    [C]: ?
>

I have the three files under the  /usr/local/share/lua/5.1/xmlrpc/ dir

ser:/usr/src/compat-5.1r5# ls /usr/local/share/lua/5.1/xmlrpc/
cgi.lua  http.lua  xmlrpc.lua

And ser:/usr/src/compat-5.1r5# find / -name lxp.lua
does not return anything.

What could be the problem?

Thanks in advance for all your help.

Regards,
Pete