luadbi
luadbi copied to clipboard
Lualatex can't find mysql.so
Hi! I just don't seem to be able to get DBI to work from lualatex although it works fine from a plain lua script. This is what I get on the console:
)) (/usr/share/texmf-dist/tex/luatex/luapackageloader/luapackageloader.sty)./DB
I.lua:53: Cannot load driver MySQL. Available drivers are: (None)
stack traceback:
[C]: in function 'error'
./DBI.lua:53: in function 'DBI.Connect'
when there are only two lines of code:
\luadirect{
local DBI = require("DBI")
local dbh = assert(DBI.Connect("MySQL","serge", "serge", "serge", "localhost", 3306))
}
Lualatex stop yelling when I leave only the first line where it just requires DBI, so it seems there is something in DBI.lua it does not like. And that means there is something wrong with function available_drivers()...