我必须安装 Fedora 24(今天的测试版),因为我的笔记本电脑太新,需要最新版本的内核。
一切都很好,但现在的问题是我想编译 latex,但似乎有些东西还没有准备好。我已经完成了
dnf install texlive-scheme-basic
然后尝试编译任何 latex 文件。但发生了以下情况:
$ latex test.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX
Live 2016/dev) (preloaded format=latex) restricted \write18 enabled.
kpathsea: Running mktexfmt latex.fmt Errno architecture
(x86_64-linux-thread-multi-4.3.5-300.fc23.x86_64) does not match
executable architecture
(x86_64-linux-thread-multi-4.4.6-301.fc23.x86_64) at
/usr/lib64/perl5/Errno.pm line 11. Compilation failed in require at
/usr/share/perl5/vendor_perl/File/Temp.pm line 17. BEGIN
failed--compilation aborted at
/usr/share/perl5/vendor_perl/File/Temp.pm line 17. Compilation failed
in require at /usr/share/texlive/tlpkg/TeXLive/TLUtils.pm line 206.
BEGIN failed--compilation aborted at
/usr/share/texlive/tlpkg/TeXLive/TLUtils.pm line 206. Compilation
failed in require at /usr/bin/mktexfmt line 48. BEGIN
failed--compilation aborted at /usr/bin/mktexfmt line 48. I can't find
the format file `latex.fmt'!
然后我
$ locate latex.fmt
/home/me/.texlive2007/texmf-var/web2c/pdftex/latex.fmt
/home/me/.texlive2007/texmf-var/web2c/pdftex/pdflatex.fmt
[sequi@sequi6 latex]$ cp
/home/me/.texlive2007/texmf-var/web2c/pdftex/latex.fmt
现在发生了这样的事情:
$ latex test.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX
Live 2016/dev) (preloaded format=latex) restricted \write18 enabled.
---! latex.fmt doesn't match pdftex.pool (Fatal format file error; I'm stymied)
有人能帮助我如何在 Fedora 24 中正确编译 latex 文件吗?
答案1
我遇到了类似的问题。以下内容为我修复了此问题:
sudo texconfig rehash