lua-users home
lua-l archive

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


Hello

	Sorry for having to ask for help again :-/ When trying to load the
LuaSQL module on the appliance running uClinux-dist, I get the
following error:

========
/var/tmp> ./lua -lluasql.sqlite3
./lua: can't resolve symbol '_luaL_ref'
========

As the appliance didn't have "ldd", I fetched it from the latest
uClinux-dist and cross-compiled it with the same toolchain:

========
/var/tmp> ./ldd /usr/local/lib/lua/5.1.4/luasql/sqlite3.so

ldd: can't open cache '/etc/ld.so.cache'
checking sub-depends for '/lib/libgcc_s.so.1'
checking sub-depends for '/lib/libc.so.0'
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x220e460)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00000000)
        libc.so.0 => /lib/libc.so.0 (0x00000000)
        /lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x00000000)
========

So it looks like LuaSQL has the libraries it needs.

The LuaSQL page says: "All LuaSQL drivers follow the package model for
Lua 5.1 and therefore should be "installed" in your package.path."

www.keplerproject.org/luasql/manual.html#installation

I don't know what package.path is. Could it explain the error above?
Do I need to perform an additional action after putting sqlite3.so in
/usr/local/lib/lua/5.1.4/luasql/?

Thank you for any help.