[luatex] [lucida] luatex hangs on lucida OT test file

Bruno Voisin bvoisin at me.com
Thu Mar 9 15:00:52 CET 2017


> Le 9 mars 2017 à 08:02, Bruno Voisin <bvoisin at me.com> a écrit :
> 
>> Le 9 mars 2017 à 02:22, Reinhard Kotucha <reinhard.kotucha at web.de> a écrit :
>> 
>> It should be sufficient to put a texmf.cnf file into ~/.texlive2016/bin
>> which only contains one line:
>> 
>> TEXMROOT = /usr/local/texlive/2016
> 
> Would something also need to be done for texmf-local, like
> 
> TEXMFLOCAL = /usr/local/texlive/texmf-local
> 
> (to replace $SELFAUTOGRANDPARENT)?
> 
> Looking closer through the default texmf.cnf, there's also TEXMFCNF which uses $SELFAUTOLOC, $SELFAUTODIR, $SELFAUTOPARENT and $SELFAUTOGRANDPARENT, but if I understand correctly this is precisely where the location of texmf.cnf files is defined, with $SELFAUTOLOC the location of the currently used binary (ie luatex), right?


It's not as easy at it sounds. After putting luatex inside ~/Library/texbin, creating symlinks lualatex, texlua and texluac, adding a texmf.cnf containing

TEXMROOT = /usr/local/texlive/2016
TEXMFLOCAL = /usr/local/texlive/texmf-local

and adding to .bash_profile

export PATH="$HOME/Library/texbin":$PATH

then texdoc no longer works

$ texdoc texlive
/Library/TeX/texbin/texdoc:7: module 'texdoc.main' not found:
	no field package.preload['texdoc.main']
	[kpse lua searcher] file not found: 'texdoc.main'
	[kpse C searcher] file not found: 'texdoc.main'
	no file '/usr/local/lib/lua/5.2/texdoc.so'
	no file '/usr/local/lib/lua/5.2/loadall.so'
	no file './texdoc.so'

nor does fmtutil

$ fmtutil --byengine luatex
fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order):
fmtutil:   /usr/local/texlive/texmf-local/web2c/fmtutil.cnf
fmtutil:   /usr/local/texlive/2016/texmf-dist/web2c/fmtutil.cnf
fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes:
fmtutil:   /Users/brunovoisin/Library/texlive/2016/texmf-config/web2c/fmtutil.cnf
fmtutil [INFO]: writing formats under /Users/brunovoisin/Library/texlive/2016/texmf-var/web2c
fmtutil [INFO]: --- remaking luatex with luatex
fmtutil: running `luatex -ini   -jobname=luatex -progname=luatex luatex.ini' ...
This is LuaTeX, Version 1.0.3 (TeX Live 2017/dev)  (INITEX)
! I can't find file `luatex.ini'.
<*> luatex.ini
[...]
!  ==> Fatal error occurred, bad output DVI file produced!
No pages of output.
Transcript written on luatex.log.
[...]
fmtutil [ERROR]: running `luatex -ini   -jobname=luatex -progname=luatex luatex.ini </dev/null' return status 1
fmtutil [ERROR]: return error due to options --strict
[...]
fmtutil [INFO]: Disabled formats: 6
fmtutil [INFO]: Not selected formats: 41
fmtutil [INFO]: Failed to build: 5 (luatex/luatex luatex/pdfcsplain luatex/lualatex luatex/dvilualatex luatex/dviluatex)
fmtutil [INFO]: Total formats: 52
fmtutil [INFO]: exiting with status 5

I've tried all sorts of things:

- Putting kpsewhich alongside luatex inside ~/Library/texbin, as suggested by Norbert. Norbert's test "kpsewhich -show-path .cnf" then only returns directories inside ~/Library/texbin. Without putting kpsewhich there, the same test only returns directories inside /usr/local/texlive/2016.

- Setting also TEXMFCNF inside texmf.cnf

TEXMFCNF = {\
$SELFAUTOLOC,\
$SELFAUTOLOC/share/texmf-local/web2c,\
$SELFAUTOLOC/share/texmf-dist/web2c,\
$SELFAUTOLOC/share/texmf/web2c,\
$SELFAUTOLOC/texmf-local/web2c,\
$SELFAUTOLOC/texmf-dist/web2c,\
$SELFAUTOLOC/texmf/web2c,\
\
/usr/local/texlive/texmf-local/web2c,\
/usr/local/texlive/2016,\
\
/usr/local/texlive/2016/share/texmf-local/web2c,\
/usr/local/texlive/2016/share/texmf-dist/web2c,\
/usr/local/texlive/2016/share/texmf/web2c,\
/usr/local/texlive/2016/texmf-local/web2c,\
/usr/local/texlive/2016/texmf-dist/web2c,\
/usr/local/texlive/2016/texmf/web2c\
}

- Create also a texmfcnf.lua with

return { 
  content = {
    variables = {
      TEXMFCNF     = "{selfautodir:,/usr/local/texlive/2016}{,{/share,}/texmf{-local,}/web2c}"
      TEXMFSYSVAR     = "/usr/local/texlive/2016/texmf-var",
      TEXMFDIST       = "/usr/local/texlive/2016/texmf-dist",
      TEXMFSYSCONFIG  = "/usr/local/texlive/2016/texmf-config",
      TEXMFFONTS      = "/usr/local/texlive/2016/texmf-fonts",
      TEXMFPROJECT    = "/usr/local/texlive/2016/texmf-project",
    },
  },
}

None of this has the slightest effect!

I'm done, this is simply way above my league and has consumed far too much time already. Will wait for TeX Live 2017.

Bruno




More information about the luatex mailing list