textlive 安装出现的can't spawn cmd.exe问题

最近,我系统再次装TeXlive的时候,报错信息如同:
Use of uninitialized value in scalar chomp at tlpkg/TeXLive/TLUtils.pm line 1649
.
Use of uninitialized value in concatenation (.) or string at tlpkg/TeXLive/TLUti
ls.pm line 1650.
Use of uninitialized value in scalar chomp at tlpkg/TeXLive/TLUtils.pm line 1649
.
Use of uninitialized value in concatenation (.) or string at tlpkg/TeXLive/TLUti
ls.pm line 1650.
Use of uninitialized value in scalar chomp at tlpkg/TeXLive/TLUtils.pm line 1649
.
Use of uninitialized value in concatenation (.) or string at tlpkg/TeXLive/TLUti
ls.pm line 1650.
Use of uninitialized value in scalar chomp at tlpkg/TeXLive/TLUtils.pm line 1649
.
Use of uninitialized value in concatenation (.) or string at tlpkg/TeXLive/TLUti
ls.pm line 1650.
Can't spawn "cmd.exe": No such file or directory at tlpkg/TeXLive/TLUtils.pm lin
e 1040.
TeXLive::TLUtils::setup_programs failed at tlpkg/TeXLive/TLUtils.pm line 1042.
\.\tlpkg\installer\lzma\lzmadec.win32.exe --help failed (status 65280): No such
file or directory
Output is:

LZMAdec - a small LZMA decoder

Usage: \.\tlpkg\installer\lzma\lzmadec.win32.exe [--help]

The compressed data is read from stdin and uncompressed to stdout.

LZMA SDK version 4.32 - Copyright (C) 1999-2005 Igor Pavlov
LZMA Utils version 4.32.4 - Copyright (C) 2005 Lasse Collin

LZMAdec is free software licensed under the GNU LGPL.

Couldn't set up the necessary programs.
Cannot continue with installation.
Please report to  [email protected] .
请按任意键继续. . .

然后使用网络安装,在ctan上下载了install-tl.zip,解压缩后,双击install-tl.bat,结果出现跟如下出错信息:
Use of uninitialized value in scalar chomp at tlpkg/TeXLive/TLUtils.pm line 1650
.
Use of uninitialized value in concatenation (.) or string at tlpkg/TeXLive/TLUti
ls.pm line 1651.
Use of uninitialized value in scalar chomp at tlpkg/TeXLive/TLUtils.pm line 1650
.
Use of uninitialized value in concatenation (.) or string at tlpkg/TeXLive/TLUti
ls.pm line 1651.
Use of uninitialized value in scalar chomp at tlpkg/TeXLive/TLUtils.pm line 1650
.
Use of uninitialized value in concatenation (.) or string at tlpkg/TeXLive/TLUti
ls.pm line 1651.
Use of uninitialized value in scalar chomp at tlpkg/TeXLive/TLUtils.pm line 1650
.
Use of uninitialized value in concatenation (.) or string at tlpkg/TeXLive/TLUti
ls.pm line 1651.
Can't spawn "cmd.exe": No such file or directory at tlpkg/TeXLive/TLUtils.pm lin
e 1041.
TeXLive::TLUtils::setup_programs failed at tlpkg/TeXLive/TLUtils.pm line 1043.
\.\tlpkg\installer\lzma\lzmadec.win32.exe --help failed (status 65280): No such
file or directory
Output is:
Can't spawn "cmd.exe": No such file or directory at tlpkg/TeXLive/TLUtils.pm lin
e 1046.
Couldn't set up the necessary programs.
Cannot continue with installation.
Please report to  [email protected] .
请按任意键继续. . .

TeXlive2009版本  稍有差异但是总也有
如:Can't spawn "cmd.exe": No such file or directory at tlpkg/TeXLive/TLUtils.pm line
错误语句


解决方案
在系统变量 path 增加一个项:C:\Windows\System32;
问题即可解决。

你可能感兴趣的:(textlive 安装出现的can't spawn cmd.exe问题)