[luatex] Accessing external Lua libraries
luigi scarso
luigi.scarso at gmail.com
Wed Mar 24 14:31:23 CET 2021
On Wed, Mar 24, 2021 at 12:45 PM Andreas Matthias <
andreas.matthias at gmail.com> wrote:
> To access external Lua libraries I have the following settings in
> texmf.cnf:
>
> LUAROCKS_PATH = ~/.luarocks/share/lua/5.3
> LUAROCKS_CPATH= ~/.luarocks/lib/lua/5.3
>
> LUAINPUTS = <default_path_here>//;$LUAROCKS_PATH//
> CLUAINPUTS = <default_path_here>//;$LUAROCKS_CPATH//
>
> Now I have access to files like:
>
> ~/.luarocks/share/lua/5.3/?.lua
> ~/.luarocks/lib/lua/5.3/?.so
>
> But unfortunately I do not get access to `init.lua` files, i.e.:
>
> ~/.luarocks/share/lua/5.3/?/init.lua
>
> What should I do to access these files?
>
> In addition I have a sneaking suspicion that
>
> \directlua{
> print(package.path)
> }
>
> displays the content of the environment variable $LUA_PATH, but not the
> path that is actually accessible to luatex when using kpse settings.
>
You can run luatex --kpathsea-debug=-1
to check what kpse is doing.
--
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/luatex/attachments/20210324/caeaf4e8/attachment.html>
More information about the luatex
mailing list.