I have many sql/lua libs installed including liblu5.1-sql-sqlite3, lua-sql-sqlite3, liblua5.1-sql-sqlite3-2 and liblua5.1-sql-sqlite3-dev.
When mudlet is loaded I get the echo "Lua module sqlite3 loaded" however in my main script where I include this dba.lua script, I get an error on script compliation:
Code: Select all
Trying to activated script main failed reason: ...dba.lua:14: attempt to index global luasql (a nil value)
Doing a manual require outputs the following:
Code: Select all
table 0x41dc3ad8 {
'sqlite3': function
'_DESCRIPTION': 'LuaSQL is a simple interface from Lua to a DBMS'
'_COPYRIGHT': 'Copyright (C) 2003-2012 Kepler Project'
'_VERSION': 'LuaSQL 2.3.0'
}
Any ideas on how to fix this please??