Texlive安装之后,编译.tex文件,报找不到*.ftm!

2019-08-30 19:11发布

This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/W32TeX) (preloaded format=pdflatex)res...

This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/W32TeX) (preloaded format=pdflatex)

restricted \write18 enabled.

Use of uninitialized value $ver in scalar chomp at D:/Program files/texlive/2019/tlpkg/TeXLive/TLWinGoo.pm line 204.

Use of uninitialized value $ver in substitution (s///) at D:/Program files/texlive/2019/tlpkg/TeXLive/TLWinGoo.pm line 205.

Use of uninitialized value $ver in substitution (s///) at D:/Program files/texlive/2019/tlpkg/TeXLive/TLWinGoo.pm line 205.

fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order):

fmtutil:   d:/program files/texlive/2019/texmf-dist/web2c/fmtutil.cnf

fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes:

fmtutil:   c:/users/wangsx/.texlive2019/texmf-config/web2c/fmtutil.cnf

fmtutil [INFO]: writing formats under c:/users/wangsx/.texlive2019/texmf-var/web2c

fmtutil [INFO]: --- remaking pdflatex with pdftex

Can't spawn "cmd.exe": No such file or directory at d:\Program files\texlive\2019\texmf-dist\scripts\texlive\fmtutil.pl line 598.

fmtutil [WARNING]: inifile pdflatex.ini for pdflatex/pdftex not found.

fmtutil [INFO]: Disabled formats: 6

fmtutil [INFO]: Not selected formats: 44

fmtutil [INFO]: Failed to build: 1 (pdftex/pdflatex)

fmtutil [INFO]: Total formats: 51

fmtutil [INFO]: exiting with status 1

D:\Program files\texlive\2019\bin\win32\runscript.tlu:902: command failed with exit code 1:

perl.exe "d:\Program files\texlive\2019\texmf-dist\scripts\texlive\fmtutil.pl"  --user --byfmt pdflatex

Running the command D:\Program files\texlive\2019\bin\win32\fmtutil-user.exe

I can't find the format file `pdflatex.fmt'!


kpathsea: Running mktexfmt pdflatex.fmt


The command name is D:\Program files\texlive\2019\bin\win32\mktexfmt



2条回答

第一步:用管理员,命令行执行:

fmtutil-sys -all

第二步,发现异常,那就看 MD5 值检查镜像是否完整,用镜像重新安装。

以上肯定能够解决问题。

一周热门 更多>