The following error occurs when attempting to compile any LaTeX document:
/ # pdflatex foo.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Alpine Linux) (preloaded format=pdflatex)
restricted \write18 enabled.
kpathsea: Running mktexfmt pdflatex.fmt
Can't locate mktexlsr.pl in @INC (@INC contains: /usr/share/tlpkg /usr/share/texmf-dist/scripts/texlive /usr/local/lib/perl5/site_perl /usr/local/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at /usr/bin/mktexfmt line 24.
BEGIN failed--compilation aborted at /usr/bin/mktexfmt line 26.
I can't find the format file `pdflatex.fmt'!
After some Google-fu I found some commands that were supposed to fix the problem but don't:
texconfig rehash
fmtutil-sys --all
fmtutil --missing
mktexfmt latex
fmtutil latex
Someone from one of the Google results claims that the .fmt files should be autogenerated when pdflatex/etc runs.
The following error occurs when attempting to compile any LaTeX document:
After some Google-fu I found some commands that were supposed to fix the problem but don't:
texconfig rehashfmtutil-sys --allfmtutil --missingmktexfmt latexfmtutil latexSomeone from one of the Google results claims that the
.fmtfiles should be autogenerated whenpdflatex/etc runs.