
我使用的是 Fedora Silverblue 39,並且習慣於rpm-ostree
安裝texlive-scheme-full
.
我嘗試使用命令列編譯 .tex 文件pdflatex
,但它返回此錯誤。
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: /var/home/stevicheliz/.texlive2023/texmf-config/web2c/fmtutil.cnf
mktexfmt [INFO]: writing formats under /var/home/stevicheliz/.texlive2023/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 fmtutil -sys --all
結果返回:
fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order):
fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes:
fmtutil: /usr/share/texlive/texmf-config/web2c/fmtutil.cnf
fmtutil [INFO]: writing formats under /var/lib/texmf/web2c
fmtutil [WARNING]: You seem to have no formats defined in your fmtutil.cnf files!
fmtutil [INFO]: total formats: 0
fmtutil [INFO]: exiting with status 0
該檔案仍然無法編譯。
我嘗試重新安裝texlive-scheme-full
,但仍然返回相同的錯誤。我也嘗試卸載texlive-scheme-full
並安裝texlive-scheme-basic
,但仍然無法編譯。rpm-ostree
在安裝之前自動更新所有軟體包,因此不應該有任何依賴性問題。即便如此,我還是進行了系統更新,重新啟動,安裝了 texlive,然後再次重新啟動。還是不會編譯。
編輯:fmtutil.cnf
記錄的任一路徑上都不存在。
答案1
我安裝了tex-live
並且tug.org
安裝後建議安裝 LWP 捆綁包。事實證明,Fedora Silverblue 除了 Perl 本身之外沒有任何 Perl 軟體包。一旦我安裝了 perl 必需品和 LWP,我就可以順利編譯。fmtutil-sys
之後也像魅力一樣工作,儘管我不得不擺弄sudo
讓它找到 tex 命令。