lua-users home
lua-l archive

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


Hi,
So, it seems like my luaexpat installation is not right. 
I tried to do a search on lxo.so, but nothing is found:
ser:/# find / -name lxp.so

Then, I tried to reinstall luaexpat:
ser:/usr/src/luaexpat-1.1# make clean
rm -f src/lxp.so.1.1.0 src/lxplib.o ../compat-5.1r5/compat-5.1.o
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
gcc -c -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 -o ../compat-5.1r5/compat-5.1.o ../compat-5.1r5/compat-5.1.c
export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc -o src/lxp.so.1.1.0 -shared  src/lxplib.o ../compat-5.1r5/compat-5.1.o -lexpat
ser:/usr/src/luaexpat-1.1#

But after that, I still can't find the lxp.so file nor the lxp.lua file.

What could be the problem with my installation?

Thanks alot for all your help.

Regards,
Pete


On Fri, May 30, 2008 at 1:28 AM, Tomas Guisasola Gorham <tomas@tecgraf.puc-rio.br> wrote:
       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