<div dir="ltr"><div dir="ltr">On Wed, Mar 29, 2023 at 10:20 AM Vítek Novotný <<a href="mailto:witiko@mail.muni.cz">witiko@mail.muni.cz</a>> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Mar 27, 2023 at 03:29:45PM -0600, Karl Berry wrote:<br>
> Hi Vit,<br>
> <br>
>     resolvers       | resolving | warning: no lua configuration files found<br>
>     resolvers       | resolving | no texmf paths are defined (using TEXMF)<br>
> <br>
> This would seem to be the problem. Do you have a texmfcnf.lua file?<br>
> There should be the distributed one in texmf-dist/web2c/texmfcnf.lua <br>
> and also generated by the installer in (by default)<br>
> /usr/local/texlive/2023/texmfcnf.lua.<br>
> Both are alongside a texmf.cnf file.<br>
<br>
Dear Karl,<br>
<br>
I do:<br>
<br>
    $ ls -lh /usr/local/texlive/2023/texmfcnf.lua<br>
    -rw-r--r-- 1 root root 524 Mar 27 12:17 /usr/local/texlive/2023/texmfcnf.lua<br>
<br>
> Can you run the luametatex binary (luametatex --version) on its own?<br>
<br>
I can:<br>
<br>
    $ luametatex --version<br>
    This is LuaMetaTeX, Version 2.10.07<br>
<br>
    Execute 'luametatex --credits' for credits and version details.<br>
<br>
    There is NO warranty. Redistribution of this software is covered by the terms<br>
    of the GNU General Public License, version 2 or (at your option) any later<br>
    version. For more information about these matters, see the file named COPYING<br>
    and the LuaMetaTeX source.<br>
<br>
    Functionality : level 20230310<br>
    Support       : <a href="mailto:context@ntg.nl" target="_blank">context@ntg.nl</a><br>
    Copyright     : The Lua(Meta)TeX Team(s) (2005-2023+)<br>
<br>
    The LuaMetaTeX project is related to ConTeXt development. This macro package<br>
    tightly integrates TeX and MetaPost in close cooperation with Lua. Updates will<br>
    happen in sync with ConTeXt and when needed. Don't be fooled by unchanged dates:<br>
    long term stability is the objective.<br>
<br>
> Other than that, maybe you have some envvar set? I do not know how<br>
> luametatex looks up files or how to debug it. It doesn't use kpathsea<br>
> and I don't know what "(using TEXMF)" really means.  Maybe Hans or Mojca<br>
> or Siep or some other lmtx-savvy person can provide some clues.<br>
<br>
I believe Max Chernoff commented on this bit.<br>
<br>
> For additional information, you could try running context --generate<br>
> --luatex, which generates the cache for the luatex-based context mkiv<br>
> (as I understand it). (install-tl also runs this.) Maybe that will<br>
> succeed or fail in a different way, providing more information. --best, karl.<br>
<br>
It does fail in new interesting ways:<br>
<br>
    $ sudo context --generate --luatex<br>
    mtxrun          | forcing cache reload<br>
    resolvers       | resolving | looking for regular 'texmfcnf.lua' on given path '/root/texmf/web2c' from specification 'home:texmf/web2c'<br>
    resolvers       | resolving | looking for regular 'texmfcnf.lua' on given path '/usr/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c'<br>
    resolvers       | resolving | looking for regular 'texmfcnf.lua' on given path '/usr/texmf-context/web2c' from specification 'selfautoparent:/texmf-context/web2c'<br>
    resolvers       | resolving | looking for regular 'texmfcnf.lua' on given path '/usr/texmf-dist/web2c' from specification 'selfautoparent:/texmf-dist/web2c'<br>
    resolvers       | resolving | looking for regular 'texmfcnf.lua' on given path '/usr/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'<br>
    resolvers       | resolving | looking for fallback 'contextcnf.lua' on given path '/root/texmf/web2c' from specification 'home:texmf/web2c'<br>
    resolvers       | resolving | looking for fallback 'contextcnf.lua' on given path '/usr/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c'<br>
    resolvers       | resolving | looking for fallback 'contextcnf.lua' on given path '/usr/texmf-context/web2c' from specification 'selfautoparent:/texmf-context/web2c'<br>
    resolvers       | resolving | looking for fallback 'contextcnf.lua' on given path '/usr/texmf-dist/web2c' from specification 'selfautoparent:/texmf-dist/web2c'<br>
    resolvers       | resolving | looking for fallback 'contextcnf.lua' on given path '/usr/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'<br>
    resolvers       | resolving |<br>
    resolvers       | resolving | warning: no lua configuration files found<br>
    resolvers       | resolving | no texmf paths are defined (using TEXMF)<br>
    resolvers       | resolving |<br>
    mtxrun          | the resolver databases are not present or outdated<br>
    resolvers       | resolving | using suffix based filetype 'scripts'<br>
    resolvers       | resolving | remembering file 'mtx-context.lua' using hash 'lua::mtx-context.lua'<br>
    resolvers       | resolving | using suffix based filetype 'scripts'<br>
    resolvers       | resolving | remembering file 'mtx-contexts.lua' using hash 'lua::mtx-contexts.lua'<br>
    resolvers       | resolving | remembered file 'mtx-context.lua'<br>
    resolvers       | resolving | using suffix based filetype 'scripts'<br>
    resolvers       | resolving | remembering file 'mtx-t-mtx-context.lua' using hash 'lua::mtx-t-mtx-context.lua'<br>
    resolvers       | resolving | using suffix based filetype 'scripts'<br>
    resolvers       | resolving | remembering file 'mtx-t-mtx-contexts.lua' using hash 'lua::mtx-t-mtx-contexts.lua'<br>
    resolvers       | resolving | remembered file 'mtx-t-mtx-context.lua'<br>
    resolvers       | resolving | remembered file 'mtx-context.lua'<br>
    mtxrun          | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'<br>
<br>
> P.S. mtxrun --generate does work for me, and others. So it's not just a<br>
> global failure.<br>
<br>
As stated, I can reproduce this on two different binary platforms and on<br>
both a netinstall of TeX Live and the texlive/texlive:latest Docker<br>
image. Seems global to me.<br></blockquote><div><br></div><div>It is good practice to avoid running complex scripts as root unless absolutely</div><div>necessary.  I never install TeX Live as root, but always as the user designated to be <br></div><div>the TL maintainer.  On Fedora 27,  <span style="font-family:monospace">context --generate --luatex</span>  "works for me".  <br></div><div><br></div><div>I'm curious: what happens if you change ownership of the texlive/2023 tree to a regular user?<br></div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>George N. White III<br><br></div></div></div></div>