![在基于 Arch 的 Linux 发行版上安装 texlive 后无法使用 pdflatex 进行编译](https://linux22.com/image/417133/%E5%9C%A8%E5%9F%BA%E4%BA%8E%20Arch%20%E7%9A%84%20Linux%20%E5%8F%91%E8%A1%8C%E7%89%88%E4%B8%8A%E5%AE%89%E8%A3%85%20texlive%20%E5%90%8E%E6%97%A0%E6%B3%95%E4%BD%BF%E7%94%A8%20pdflatex%20%E8%BF%9B%E8%A1%8C%E7%BC%96%E8%AF%91.png)
我在运行 Parabola(与 Arch 非常相似)的计算机上安装了 LaTex,使用以下命令:
sudo pacman -S texlive-most
。安装过程中我记得屏幕上出现了此错误:
error: command failed to execute correctly
。为了检查 LaTex 是否正常工作,我创建了文件 test.tex:
\documentclass{article}
\begin{document}
dfvlkmdfv
\end{document}
我输入了pdflatex test.tex
,但效果不佳。结果是:
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/Parabola GNU/Linux-libre) (preloaded format=pdflatex)
restricted \write18 enabled.
kpathsea: Running mktexfmt pdflatex.fmt
mktexfmt: mktexfmt is using the following fmtutil.cnf files (in precedence order):
mktexfmt: mktexfmt is using the following fmtutil.cnf file for writing changes:
mktexfmt: /home/michael/.texlive/texmf-config/web2c/fmtutil.cnf
mktexfmt [INFO]: writing formats under /home/michael/.texlive/texmf-var/web2c
mktexfmt [INFO]: did not find entry for byfmt=pdflatex, skipped
mktexfmt [INFO]: Total formats: 0
mktexfmt [INFO]: exiting with status 0
I can't find the format file `pdflatex.fmt'!
我尝试按照这里的建议去做sudo texconfig rehash
:错误:我找不到格式文件 pdflatex.fmt
但它不起作用,我得到了:
/usr/bin/texconfig: line 1304: mktexlsr: command not found
。那么你有什么建议吗?