It seems TeX Live 2020 starts rolling and luahbtex is now the preferred luatex variant. Perhaps need to add it to basic installation list now?
tinytex::tlmgr_update()
tlmgr update --all --self
tlmgr: package repository http://mirror.lzu.edu.cn/CTAN/systems/texlive/tlnet (verified)
fmtutil [ERROR]: not building lualatex due to missing engine: luahbtex
The issue is gone with tinytex::tlmgr_install('luahbtex').
By filing an issue to this repo, I promise that
xfun::session_info('tinytex'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('yihui/tinytex').I understand that my issue may be closed if I don't fulfill my promises.
There is any workaround to solve this?
In my case, I use Tinytex indirectly via Bookdown. (I'm a newbie with the R ecosystem and tinytex)
install.packages('bookdown', repository='http://mirror.utexas.edu/ctan/')
install.packages('tinytex', repository='http://mirror.utexas.edu/ctan/')
tinytex::install_tinytex(repository='http://mirror.utexas.edu/ctan/', extra_packages=c('luahbtex', 'lm-math', 'unicode-math'))
tinytex::reinstall_tinytex()
But I keep getting error messages related to luahbtex, like:
#....
running mktexlsr ...
done running mktexlsr.
running updmap-sys ...
done running updmap-sys.
regenerating fmtutil.cnf in /tmp/texlive/texmf-dist
running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --no-error-if-no-format --byengine luatex ...
done running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --no-error-if-no-format --byengine luatex.
running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --no-error-if-no-format --byengine pdftex ...
done running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --no-error-if-no-format --byengine pdftex.
running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --no-error-if-no-format --byengine xetex ...
done running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --no-error-if-no-format --byengine xetex.
running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --byfmt lualatex ...
tlmgr: fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --byfmt lualatex failed (status 1), output:
fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order):
fmtutil: /tmp/texlive/texmf-dist/web2c/fmtutil.cnf
fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes:
fmtutil: /tmp/texlive/texmf-config/web2c/fmtutil.cnf
fmtutil [INFO]: writing formats under /tmp/texlive/texmf-var/web2c
fmtutil [INFO]: --- remaking lualatex with luahbtex
fmtutil [ERROR]: not building lualatex due to missing engine: luahbtex
fmtutil [INFO]: not selected formats: 10
fmtutil [INFO]: failed to build: 1 (luahbtex/lualatex)
fmtutil [INFO]: total formats: 11
fmtutil [INFO]: exiting with status 1
tlmgr: An error has occurred. See above messages. Exiting.
#....
running mktexlsr ...
done running mktexlsr.
running updmap-sys ...
done running updmap-sys.
regenerating language.dat
regenerating language.def
regenerating language.dat.lua
regenerating fmtutil.cnf in /root/.TinyTeX/texmf-dist
running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --no-error-if-no-format --byengine tex ...
done running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --no-error-if-no-format --byengine tex.
running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --byfmt mf ...
done running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --byfmt mf.
running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --byhyphen "/root/.TinyTeX/texmf-var/tex/generic/config/language.dat" ...
tlmgr: fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --byhyphen "/root/.TinyTeX/texmf-var/tex/generic/config/language.dat" failed (status 1), output:
fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order):
fmtutil: /root/.TinyTeX/texmf-dist/web2c/fmtutil.cnf
fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes:
fmtutil: /root/.TinyTeX/texmf-config/web2c/fmtutil.cnf
fmtutil [INFO]: writing formats under /root/.TinyTeX/texmf-var/web2c
fmtutil [INFO]: --- remaking latex with pdftex
fmtutil: running `pdftex -ini -jobname=latex -progname=latex -translate-file=cp227.tcx *latex.ini' ...
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (INITEX)
restricted \write18 enabled.
(/root/.TinyTeX/texmf-dist/web2c/cp227.tcx)
entering extended mode
(/root/.TinyTeX/texmf-dist/tex/latex/latexconfig/latex.ini
(/root/.TinyTeX/texmf-dist/tex/generic/tex-ini-files/pdftexconfig.tex)
(/root/.TinyTeX/texmf-dist/tex/latex/base/latex.ltx
(/root/.TinyTeX/texmf-dist/tex/latex/base/texsys.cfg)
./texsys.aux found
#....
Hyphenation trie of length 67092 has 1136 ops out of 35111
475 for language 4
478 for language 3
2 for language 1
181 for language 0
No pages of output.
Transcript written on xelatex.log.
fmtutil [INFO]: log file copied to: /root/.TinyTeX/texmf-var/web2c/xetex/xelatex.log
fmtutil [INFO]: /root/.TinyTeX/texmf-var/web2c/xetex/xelatex.fmt installed.
fmtutil [ERROR]: not building lualatex due to missing engine: luahbtex
fmtutil [INFO]: successfully rebuilt formats: 4
fmtutil [INFO]: not selected formats: 8
fmtutil [INFO]: failed to build: 1 (luahbtex/lualatex)
fmtutil [INFO]: total formats: 13
fmtutil [INFO]: exiting with status 1
running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --byhyphen "/root/.TinyTeX/texmf-var/tex/generic/config/language.def" ...
done running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --byhyphen "/root/.TinyTeX/texmf-var/tex/generic/config/language.def".
running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --byhyphen "/root/.TinyTeX/texmf-var/tex/generic/config/language.dat.lua" ...
tlmgr: An error has occurred. See above messages. Exiting.
The full log: https://gist.github.com/luzfcb/982df12df966fbb385a92741665bfe0e
I have discovered this issue a couple of days ago and reported to TeX Live developers: https://tug.org/pipermail/tex-live/2020-April/045367.html They have fixed it but it will take a few more days for luahbtex to be automatically installed (after the fix is propogated to CTAN mirros). For now, R users can run tinytex::tlmgr_install('luahbtex'), and other TinyTeX users can run tlmgr install luahbtex. Thanks!
Fixed now in TeX Live. Installing latex-bin should install luahbtex automatically.
Most helpful comment
I have discovered this issue a couple of days ago and reported to TeX Live developers: https://tug.org/pipermail/tex-live/2020-April/045367.html They have fixed it but it will take a few more days for luahbtex to be automatically installed (after the fix is propogated to CTAN mirros). For now, R users can run
tinytex::tlmgr_install('luahbtex'), and other TinyTeX users can runtlmgr install luahbtex. Thanks!