Lua scripts and SQLite

Added by marvin0815 about 4 years ago

Hi everyone,

I am trying to set up an etlded with XPSave lua script.
I compiled ET:L 2.74 and lua 5.3.1 and luasql-sqlite3 from source (nothing bundled):

cmake -DBUILD_CLIENT=0 -DLUA_INCLUDE_DIR=/opt/lua/include -DLUA_LIBRARY=/opt/lua/lib/liblua.a -DLUA_LIBRARIES="/opt/lua/lib/liblua.a;/usr/lib/libm.so" -DFEATURE_IPV6=1 ..

All I get is:

Lua 5.3 API: Loading ./lua/xpsave.lua
Lua API: G_LuaStartVM error running lua script: error loading module 'luasql.sqlite3’ from file '/home/etded/.etlegacy/legacy/lualibs/luasql/sqlite3.so’:
/home/etded/.etlegacy/legacy/lualibs/luasql/sqlite3.so: undefined symbol: lua_getfield

i’m using CentOS 6.7 i686

What am I missing? Any help is appreciated.
- Marv


Replies (9)

RE: Lua scripts and SQLite - Added by Spyhawk about 4 years ago

I myself got a similar issue with LuaSQL few months ago. I never got it working.. I’m wondering if it really supports any other version than 5.1.

RE: Lua scripts and SQLite - Added by IR4T4 about 4 years ago

The question is how you did compile sqlite3, LuaSQL and ETL? If you do a cross compile (32 bit) ensure LuaSQL and sqlite3 are of same architecture.

RE: Lua scripts and SQLite - Added by marvin0815 about 4 years ago

I didn’t compile sqlite3, which is a 32 bit binary anyway. I’m trying to run ET:L with a 32 bit CentOS 6.

RE: Lua scripts and SQLite - Added by IR4T4 about 4 years ago

Where did you get sqlite3 from?

I did add sqlite3 and LuaSQL sources to our lib path and I’ll have a look ...

RE: Lua scripts and SQLite - Added by marvin0815 about 4 years ago

sqlite3 was installed via package and don’t seem to be part of the problem. The standalone lua and luaSQL works.
The exact version is sqlite-3.6.20-1.el6_7.2.i686

RE: Lua scripts and SQLite - Added by jemstar about 4 years ago

IR4T4 wrote:

Where did you get sqlite3 from?

I did add sqlite3 and LuaSQL sources to our lib path and I’ll have a look ...

I can’t find this could you please show a link.

Would be great to have a lua installation page along with files suitable for ETL - Like the NOQ wiki had!!

I have tried sqlite3 from http://lua.sqlite.org/index.cgi/index

I tried version 0.9.3 but crashed server!!

I am trying to get the xpsave.lua working as well since zelly’s zxpsave.lua is having issues with etl 2.74.

From the logs I can see what is needed and where they go, but so many versions of each available I don’t have enough knowledge to know which ones to use.

Where would I find a sqlite3.lua.

Lua 5.3 API: Loading xpsave.lua
Lua API: G_LuaStartVM error running lua script: [string "xpsave.lua"]:15: module 'luasql.sqlite3’ not found:
no field package.preload['luasql.sqlite3’]
no file '.\legacy\luasql\sqlite3.lua’
no file '.\legacy\lualibs\luasql\sqlite3.lua’
no file 'D:\TCAFiles\Users\jeremyc\43\Docs\legacy\luasql\sqlite3.lua’
no file 'D:\TCAFiles\Users\jeremyc\43\Docs\legacy\lualibs\luasql\sqlite3.lua’
no file '.\legacy\lualibs\luasql\sqlite3.dll’
no file 'D:\TCAFiles\Users\jeremyc\43\Docs\legacy\lualibs\luasql\sqlite3.dll’
no file '.\legacy\lualibs\luasql.dll’
no file 'D:\TCAFiles\Users\jeremyc\43\Docs\legacy\lualibs\luasql.dll’

Cheers,
jem.

RE: Lua scripts and SQLite - Added by redtide almost 4 years ago

I have problems too making work xpsave.lua script for my local server.
Is there some install documentation somewhere?
I’m using an ET:L 2.74 32-bit binary from downloads section on archlinux 64-bit.

RE: Lua scripts and SQLite - Added by redtide over 3 years ago

Thank you! I’ll wait next release with the lib then

(1-9/9)