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  texlive@tug.org .
请按任意键继续. . .

然后使用网络安装,在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  texlive@tug.org .
请按任意键继续. . .

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


解决方案
在系统变量 path 增加一个项:C:\Windows\System32;
问题即可解决。
  • 5
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 8
    评论
评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值