这个输出好奇怪啊?试试执行
fmtutil-sys --all
最好贴个最小样例以及错误信息
【 在 niumiu (海贼王) 的大作中提到: 】
: 标 题: Re: texlive2021安装成功了,但是无法编译,怎么破
: 发信站: 水木社区 (Wed Mar 9 11:53:59 2022), 站内
:
: This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021/W32TeX) (preloaded format=pdflatex)
: restricted \write18 enabled.
: Use of uninitialized value $ver in scalar chomp at E:/texlive/2021/tlpkg/TeXLive/TLWinGoo.pm line 205.
: Use of uninitialized value $ver in substitution (s///) at E:/texlive/2021/tlpkg/TeXLive/TLWinGoo.pm line 206.
: Use of uninitialized value $ver in substitution (s///) at E:/texlive/2021/tlpkg/TeXLive/TLWinGoo.pm line 206.
: fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order):
: fmtutil: e:/texlive/2021/texmf-dist/web2c/fmtutil.cnf
: fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes:
: fmtutil: c:/users/administrator/.texlive2021/texmf-config/web2c/fmtutil.cnf
: fmtutil [INFO]: writing formats under c:/users/administrator/.texlive2021/texmf-var/web2c
: fmtutil [INFO]: --- remaking pdflatex with pdftex
: Can't spawn "cmd.exe": No such file or directory at e:\texlive\2021\texmf-dist\scripts\texlive\fmtutil.pl line 593.
: fmtutil [WARNING]: inifile pdflatex.ini for pdflatex/pdftex not found.
: fmtutil [INFO]: disabled formats: 5
: fmtutil [INFO]: not selected formats: 53
: fmtutil [INFO]: failed to build: 1 (pdftex/pdflatex)
: fmtutil [INFO]: total formats: 59
: fmtutil [INFO]: exiting with status 1
: E:\texlive\2021\bin\win32\runscript.tlu:915: command failed with exit code 1:
: perl.exe e:\texlive\2021\texmf-dist\scripts\texlive\fmtutil.pl --user --byfmt pdflatex
: Running the command E:\texlive\2021\bin\win32\fmtutil-user.exe
: I can't find the format file `pdflatex.fmt'!
:
: kpathsea: Running mktexfmt pdflatex.fmt
:
: The command name is E:\texlive\2021\bin\win32\mktexfmt
:
: 【 在 niumiu 的大作中提到: 】
:
: --
:
: ※ 来源:·水木社区
http://www.mysmth.net·[FROM: 112.132.154.*]
--
FROM 183.131.109.*