[NTG-context] Set luatex cache directory path

Hans Hagen j.hagen at xs4all.nl
Sun Apr 11 11:16:41 CEST 2021


On 4/11/2021 1:30 AM, Thangalin wrote:
> Are two runs always required to generate a PDF when TEXMFCACHE is set?
> 
> $ sudo su -
> $ mkdir -p /opt/context
> $ cd /opt/context
> $ wget http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip 
> <http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip>
> $ unzip *zip
> $ sh install.sh
> $ exit
> $ cat test.tex
> \starttext
> Test
> \stoptext
> $ export TEXMFCACHE=/tmp
> $ rm -rf $TEXMFCACHE/luatex-cache
> $ /opt/context/tex/texmf-linux-64/bin/mtxrun --autogenerate --script 
> mtx-context --autopdf test.tex
> ...
> resolvers       | resolving | remembered file 'mtx-context.lua'
> resolvers       | resolving | remembered file 'mtx-contexts.lua'
> resolvers       | resolving | remembered file 'mtx-context.lua'
> resolvers       | resolving | remembered file 'mtx-t-mtx-context.lua'
> resolvers       | resolving | remembered file 'mtx-t-mtx-contexts.lua'
> resolvers       | resolving | remembered file 'mtx-t-mtx-context.lua'
> resolvers       | resolving | remembered file 'mtx-context.lua'
> mtxrun          | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'
> $ /opt/context/tex/texmf-linux-64/bin/mtxrun --script context --version
> mtx-context     | current version: 2021.04.10 17:09
> $ mtxrun --autogenerate --script mtx-context --autopdf test.tex
> ...
> mkiv lua stats  > runtime: 0.432 seconds, 1 processed pages, 1 shipped 
> pages, 2.315 pages/second
> system          | total runtime: 3.318 seconds of 3.372 seconds
> 
> The first run fails; the second run succeeds.
> 
> If TEXMFCACHE is not set, then the first run succeeds. If TEXMFCACHE is 
> set to any non-empty value and $TEXMFCACHE/luatex-cache has not been 
> created, mtxrun always terminates with the same unknown script error.
> 
> What am I missing to ensure that ConTeXt will create luatex-cache in 
> /tmp when TEXMFCACHE is set and successfully build the PDF on first run?
what happens if you also set TEXMFCACHE before running install.sh

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list