Typically I use the TL iso from CTAN, but I wanted to get TeXLive quickly on a system I don’t usually use, so I installed the following collections:
- texlive-collection-basic
- texlive-collection-fontutils
- texlive-collection-fontsrecommended
- texlive-collection-latex
- texlive-collection-latexrecommended
- texlive-collection-luatex
- texlive-collection-xetex
- texlive-collection-mathscience
- texlive-collection-pictures
- texlive-collection-metapost
- texlive-collection-pstricks
However I kept getting errors like this (I’m using xelatex
):
kpathsea: Running mktexfmt xelatex.fmt
mktexfmt: No such file or directory I can't find the format file `xelatex.fmt'!
Then I installed the following:
- texlive-tex
- texlive-biblatex
- texlive-bibtex
- texlive-latex
- texlive-pdftex
- texlive-xetex (this was already installed, but the others were not!)
- texlive-luatex
I find it surprising that the tex, latex, pdftex, and luatex packages were not already included in the collections. I then tried to run texconfig rehash
, but it errored out with:
texconfig rehash
/usr/bin/texconfig: line 1304: mktexlsr: command not found
So I installed
- texlive-texlive-scripts
- texlive-texlive-scripts-extra
- texlive-kpathsea
But I still cannot compile my document:
$ xelatex -interaction nonstopmode myfile
This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2021) (preloaded format=xelatex)
restricted \write18 enabled.
kpathsea: Running mktexfmt xelatex.fmt
Can't locate TeXLive/TLUtils.pm in @INC (you may need to install the TeXLive::TLUtils module) (@INC contains: /usr/share/texlive/tlpkg /usr/share/texlive/texmf-dist/scripts/texlive /usr/loca
l/lib64/perl5/5.36 /usr/local/share/perl5/5.36 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/bin/mktexfmt line 46.
BEGIN failed--compilation aborted at /usr/bin/mktexfmt line 46.
I can't find the format file `xelatex.fmt'!
$ pdflatex -interaction nonstopmode myfile
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021) (preloaded format=pdflatex)
restricted \write18 enabled.
kpathsea: Running mktexfmt pdflatex.fmt
Can't locate TeXLive/TLUtils.pm in @INC (you may need to install the TeXLive::TLUtils module) (@INC contains: /usr/share/texlive/tlpkg /usr/share/texlive/texmf-dist/scripts/texlive /usr/loca
l/lib64/perl5/5.36 /usr/local/share/perl5/5.36 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/bin/mktexfmt line 46.
BEGIN failed--compilation aborted at /usr/bin/mktexfmt line 46.
I can't find the format file `pdflatex.fmt'!