ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Thangalin <thangalin@gmail.com>
Subject: Re: Set luatex cache directory path
Date: Sun, 11 Apr 2021 11:16:41 +0200	[thread overview]
Message-ID: <bd6c7221-c2ae-98ec-ada3-bc543f315417@xs4all.nl> (raw)
In-Reply-To: <CAANrE7p9Gqw4A1_DPc2RhOnZ_1Kac=mAF_pFijAGxvem8GnMSw@mail.gmail.com>

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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2021-04-11  9:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-05 22:19 Thangalin
2021-04-06  7:31 ` Aditya Mahajan
2021-04-06 18:59   ` Thangalin
2021-04-06 19:24     ` Aditya Mahajan
2021-04-06 21:06       ` Thangalin
2021-04-10 23:30       ` Thangalin
2021-04-11  9:16         ` Hans Hagen [this message]
2021-04-11 21:13           ` Thangalin
2021-04-06 21:38     ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bd6c7221-c2ae-98ec-ada3-bc543f315417@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=ntg-context@ntg.nl \
    --cc=thangalin@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).