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?
texmf-dist/tex/luatex/luaotfload/luaotfload-main.luatry updating your system to install luaotfload – David Carlisle Jul 06 '17 at 13:35Perhaps you have two texsystems- my texlive install dir contains the 2016 folder inside. I was usinglualatexfromC:\texlive\bin\win32but I should be using the one installed inC:\texlive\2016\bin\win32– Marek M. Jul 06 '17 at 14:03sudo apt-get install fonts-lmodernin question 129799 was the solution (for me). – Michael Feb 01 '18 at 20:48