[luatex] LuaTeX and MySQL

Ulrich Voosholz ulrich.voosholz at gmx.de
Sat Nov 20 11:48:34 CET 2010

Hello erverybody!

I want to produce reports with LuaLaTex und MySql. But neither LuaLaTeX  
nor LuaTeX are able to load the required module "luasql.mysql" on my  
system. Lua itself does:

   ulvo at knox:~$ lua -e 'require "luasql.mysql"'
   ulvo at knox:~$

The connection to mysql works without problems. The following code



   This is LuaTeX, Version beta-0.60.2-2010071218 (TeX Live 2010) (rev 3736)
    restricted \write18 enabled.
   ! LuaTeX error <\directlua >:1: module 'luasql.mysql' not found:
	no field package.preload['luasql.mysql']
	[kpse lua searcher] file not found: 'luasql.mysql'
	[kpse C searcher] file not found: 'luasql.mysql'
	[kpse All-in-one searcher] file not found: 'luasql'
   stack traceback:
	[C]: in function 'require'
	<\directlua >:1: in main chunk.
   l.1 \directlua{require("luasql.mysql")}

I have already searched but cannot get a hint how to handle this. I have  
the following code:


which gave


   ulvo at knox:~$ lua -e 'print(package.cpath)'



Therefore I tried

    require "luasql.mysql"}

but the error was the same as shown above.

Does anybody have any idea or workaround?

My system is Ubuntu 10.4 LTS with Texlive 2010.

Thank you

Ulrich Voosholz

www: www.tanztraeume.de

More information about the luatex mailing list