求助,cmd编译未找到`latex.fmt' 财富值5

2019-12-11 08:40发布

安装了Tex live,命令提示符编译文件时出错,怎么办?C:\testLatex>latex test.texThis is pdfTeX, Version 3.14159265-2.6-1....

安装了Tex live,命令提示符编译文件时出错,怎么办?
C:\testLatex>latex test.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/W32TeX) (preloaded format=latex)
restricted \write18 enabled.

kpathsea: Running mktexfmt latex.fmt

The command name is C:\texlive\2019\bin\win32\mktexfmt
Running the command C:\texlive\2019\bin\win32\fmtutil-user.exe
Use of uninitialized value $ver in scalar chomp at C:/texlive/2019/tlpkg/TeXLive/TLWinGoo.pm line 204.
Use of uninitialized value $ver in substitution (s///) at C:/texlive/2019/tlpkg/TeXLive/TLWinGoo.pm line 205.
Use of uninitialized value $ver in substitution (s///) at C:/texlive/2019/tlpkg/TeXLive/TLWinGoo.pm line 205.
fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order):
fmtutil: c:/texlive/2019/texmf-dist/web2c/fmtutil.cnf
fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes:
fmtutil: c:/users/多自然啊,是初恋吧!/.texlive2019/texmf-config/web2c/fmtutil.cnf
fmtutil [INFO]: writing formats under c:/users/多自然啊,是初恋吧!/.texlive2019/texmf-var/web2c
fmtutil [INFO]: —- remaking latex with pdftex
Can’t spawn “cmd.exe”: No such file or directory at c:\texlive\2019\texmf-dist\scripts\texlive\fmtutil.pl line 598.
fmtutil [WARNING]: inifile latex.ini for latex/pdftex not found.
fmtutil [INFO]: Disabled formats: 6
fmtutil [INFO]: Not selected formats: 44
fmtutil [INFO]: Failed to build: 1 (pdftex/latex)
fmtutil [INFO]: Total formats: 51
fmtutil [INFO]: exiting with status 1
C:\texlive\2019\bin\win32\runscript.tlu:911: command failed with exit code 1:
perl.exe c:\texlive\2019\texmf-dist\scripts\texlive\fmtutil.pl —user —byfmt latex
I can’t find the format file `latex.fmt’!

我觉得原因很有可能在截图左上角那个红色的。

2条回答
registor
2019-12-11 08:48
感觉是有中文路径的原因: > fmtutil: c:/users/多自然啊,是初恋吧!/.texlive2019/texmf-config/web2c/fmtutil.cnf > mtutil [INFO]: writing formats under c:/users/多自然啊,是初恋吧!/.texlive2019/texmf-var/web2cfmtutil [INFO]: writing formats under c:/users/多自然啊,是初恋吧!/.texlive2019/texmf-var/web2c 研究一下这个中文路径。

作者追问:2019-12-11 08:48

英文路径依然没有用。

回答: 2019-12-11 08:48

不行就重新安装TeXLive。

一周热门 更多>