<sergei.nau...@gmail.com> wrote:
>
> I tried to set a few environment variables:
>
> LUAROCKS_CPATH=/usr/lib64/lua/5.3
> LUAROCKS_PATH=/usr/share/lua/5.3

Setting environment variables doesn't work. First you have to set the
variables LUAINPUTS and CLUAINPUTS
in your texmf.cnf. Then you need luapackageloader to set the search
path correctly.

local loader = require('luapackageloader')
loader.add_lua_searchers()

If you are running texlua you have to set the program name correctly:

kpse.set_program_name('lualatex')

There was a discussion some time ago:
https://tug.org/pipermail/luatex/2021-March/007494.html

Andreas

Reply via email to