[luatex] LuaTeX and MySQL

Taco Hoekwater taco at elvenkind.com
Sat Nov 20 14:03:28 CET 2010


On 11/20/2010 01:41 PM, Ulrich Voosholz wrote:
> Thank you for your attention!
>
> The library is:
>
> /usr/lib/lua/5.1/luasql/mysql.so

The reason it fails: luatex (as opposed to texlua) by default
uses kpathsea to find require files, not the package.cpath.
Unless your format is set up for that from the start, it is
not that easy to stop using kpathsea, so a better solution
is to make sure that kpathsea can actually find the files.

Therefore, the solution is to copy or symlink the libraries from

   /usr/lib/lua/5.1/<stuff>

to

   <luatex-bin-dir>/lib/lua/<stuff>

Best wishes,
Taco


More information about the luatex mailing list