19

I'm on Windows (seems like everyone else is using *nix + latex, so I thought it's worth pointing out).

When I run this command in the command prompt:

lualatex.exe --halt-on-error --interaction=nonstopmode -output-directory=C:\ C:\Users\uuu\AppData\Local\Temp\tmp9DE6.tex

The error I get is:

! Font \TU/lmr/m/n/10=[lmroman10-regular]:+tlig; at 10pt not loadable: metric data not found or bad.
<to be read again>
relax
l.105 \fontencoding\encodingdefault\selectfont

 372 words of node memory still in use:
   2 hlist, 1 rule, 1 dir, 4 glue, 47 glue_spec, 2 if_stack, 2 write, 1 pdf_col
orstack nodes
   avail lists: 2:13,3:3,5:2,7:2,8:1,9:2
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on tmp9DE6.log.

When I try to generate pdf file using TeXworks tool however, it's being generated properly. The question is - which command line options is it using to not have the same problem as cmd has? Or more general - what to do to make this problem go away?

EDIT:

Huh, didn't notice this earlier because of the amount of output, but one of the first things console is showing after running the above command, is:

module 'luaotfload-main' not found

Maybe that's the real problem? But what is the reason for it?

Marek M.
  • 303

2 Answers2

12

In case someone else comes across this problem, the solution is to install luaotfload:

sudo tlmgr install luaotfload
lf_araujo
  • 801
  • 1
  • 8
  • 22
  • 2
    I needed luaotfload-tool --update in addition to that. – Nico Schlömer Jul 13 '18 at 17:40
  • 23
    If using Tex Live in Debian, this installs loaotfload-main, and fixes the problem: sudo apt-get install texlive-luatex. And this is needed for the lualatex command: sudo apt-get install texlive-latex-base. – pts Jan 10 '19 at 14:51
  • @pts It works perfectly! – Giovanni Cerretani Jan 10 '19 at 21:31
  • FINALLY! I spent days trying to figure out the font crap. Everything about package fontspec said "need lualatex" which I had. Installing texlive-luatex finally made my fonts work. This is on Debian testing, Oct 2022. – Benny Jobigan Oct 27 '22 at 12:37
8

I solved this problem by explicitly installing the texlive-luatex package.

On Arch Linux, the command for this installation would be

sudo pacman -S texlive-luatex
Mirko
  • 89