lua-users home
lua-l archive

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


Hi,

After changing the config file inside luaexpat-1.1 for lua 5.1, the lxp.so is created.  But when I try to load it in lua, I am still getting some strange errors:

ser:/usr/src/luaexpat-1.1# lua
Lua 5.1.3  Copyright (C) 1994-2008 Lua.org, PUC-Rio
> require "xmlrpc.http"
/usr/local/share/lua/5.1/xmlrpc.lua:16: bad argument #1 to 'module' (string expected, got nil)
stack traceback:
    [C]: in function 'module'
    /usr/local/share/lua/5.1/xmlrpc.lua:16: 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]: ?
> require "xmlrpc"
stdin:1: loop or previous error loading module 'xmlrpc'
stack traceback:
    [C]: in function 'require'
    stdin:1: in main chunk
    [C]: ?
>


This is how I compile luaexpat:
ser:/usr/src/luaexpat-1.1# make
gcc -Wall -pedantic -Waggregate-return -Wcast-align -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wwrite-strings -ansi -O2 -I/usr/local/include -I../compat-5.1r5 -I/usr/local/include   -c -o src/lxplib.o src/lxplib.c
export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc -o src/lxp.so.1.1.0 -shared  src/lxplib.o  -lexpat
ser:/usr/src/luaexpat-1.1# make install
mkdir -p /usr/local/lib/lua/5.1
cp src/lxp.so.1.1.0 /usr/local/lib/lua/5.1
cd /usr/local/lib/lua/5.1; ln -f -s lxp.so.1.1.0 lxp.so
mkdir -p /usr/local/share/lua/5.1/lxp
cp src/lxp/lom.lua /usr/local/share/lua/5.1/lxp


Any idea how to get it to work?

Thanks alot for all your help.

Thanks,
Pete