在 Windows 10 上安装 Latex

在 Windows 10 上安装 Latex

如何在 Windows 10 上安装 Latex。我下载了http://mirror.ctan.org/systems/texlive/tlnet/install-tl-windows.exe这个 18 mb 的文件,双击它。它开始安装

Installing to: C:/texlive/2019
Installing [0001/3966, time/total: ??:??/??:??]: texlive.infra [416k]
Installing [0002/3966, time/total: 00:07/15:09:12]: texlive.infra.win32 [1395k]

Installing [1092/3966, time/total: 01:29:41/05:30:31]: dviljk.win32 [45k]
Installing [1093/3966, time/total: 01:30:25/05:33:12]: dviout-util [39k]
Installing [1094/3966, time/total: 01:30:48/05:34:36]: dviout-util.win32 [88k]
Installing [1095/3966, time/total: 01:31:06/05:35:41]: dviout.win32 [2183k]

过了一段时间它就卡住了

TLUtils::check_file: checksums differ for C:\Users\Debian\AppData\Local\Temp\rUZv0haGA6\WhWljBRB_5/dviout.win32.tar.xz:
TLUtils::check_file:   tlchecksum=0bb4d4d733246abbec583e6ba6528a650a7ab7d597779bac0a8860655427f7b14539549b11b32324d1dc94fc175f7021e1f44a6ef405682dc5e6b4a260c14d9d, arg=0eab55d73cdd6b9ea7f06286ecd9d815958e97b2510fdac40a1efadae3b5bdb91f88340173e2a69fa0761e0048b349e05d3416dd6e1118548211e942e24b1983
Use of uninitialized value $check_file_tmpdir in concatenation (.) or string at C:/Users/Debian/AppData/Local/Temp/nsbF045.tmp/install-tl-20191122/tlpkg/TeXLive/TLUtils.pm line 2187, <STDIN> line 106.
TLUtils::check_file:   removing C:\Users\Debian\AppData\Local\Temp\rUZv0haGA6\WhWljBRB_5/dviout.win32.tar.xz, but saving copy in 
Use of uninitialized value $destdir in concatenation (.) or string at C:/Users/Debian/AppData/Local/Temp/nsbF045.tmp/install-tl-20191122/tlpkg/TeXLive/TLUtils.pm line 1167, <STDIN> line 106.
Use of uninitialized value $destdir in -d at C:/Users/Debian/AppData/Local/Temp/nsbF045.tmp/install-tl-20191122/tlpkg/TeXLive/TLUtils.pm line 1170, <STDIN> line 106.
Use of uninitialized value $tree in string at C:/Users/Debian/AppData/Local/Temp/nsbF045.tmp/install-tl-20191122/tlpkg/TeXLive/TLUtils.pm line 889, <STDIN> line 106.
Use of uninitialized value $tree in substitution (s///) at C:/Users/Debian/AppData/Local/Temp/nsbF045.tmp/install-tl-20191122/tlpkg/TeXLive/TLUtils.pm line 895, <STDIN> line 106.
Use of uninitialized value $tree in split at C:/Users/Debian/AppData/Local/Temp/nsbF045.tmp/install-tl-20191122/tlpkg/TeXLive/TLUtils.pm line 897, <STDIN> line 106.
open(>/dviout.win32.tar.xz) failed: Permission denied at C:/Users/Debian/AppData/Local/Temp/nsbF045.tmp/install-tl-20191122/tlpkg/TeXLive/TLUtils.pm line 1204, <STDIN> line 106.
cannot unlink file for C:\Users\Debian\AppData\Local\Temp\rUZv0haGA6\WhWljBRB_5\dviout.win32.tar.xz: Permission denied at C:\Users\Debian\AppData\Local\Temp\nsbF045.tmp\install-tl-20191122\tlpkg\tlperl\lib/File/Temp.pm line 784.
cannot remove directory for C:\Users\Debian\AppData\Local\Temp\rUZv0haGA6\WhWljBRB_5: Directory not empty at C:\Users\Debian\AppData\Local\Temp\nsbF045.tmp\install-tl-20191122\tlpkg\tlperl\lib/File/Temp.pm line 784.
cannot remove directory for C:/Users/Debian/AppData/Local/Temp/rUZv0haGA6: Directory not empty at C:\Users\Debian\AppData\Local\Temp\nsbF045.tmp\install-tl-20191122\tlpkg\tlperl\lib/File/Temp.pm line 784.
cannot unlink file for C:\Users\Debian\AppData\Local\Temp\rUZv0haGA6\WhWljBRB_5\dviout.win32.tar.xz: Permission denied at C:\Users\Debian\AppData\Local\Temp\nsbF045.tmp\install-tl-20191122\tlpkg\tlperl\lib/File/Temp.pm line 784.
cannot remove directory for C:/Users/Debian/AppData/Local/Temp/rUZv0haGA6/WhWljBRB_5: Directory not empty at C:\Users\Debian\AppData\Local\Temp\nsbF045.tmp\install-tl-20191122\tlpkg\tlperl\lib/File/Temp.pm line 784.

我现在应该做什么才能完成安装?

答案1

0) 清理房间。删除原始尝试的目标目录及其中的所有内容,并删除原始下载的安装程序文件。

1)前往http://ctan.math.utah.edu/ctan/tex-archive/systems/texlive/tlnet/并获取安装程序的校验和安装-tl-windows.exe.sha512

2)再次下载安装程序文件。

3)下载完成后,在开始安装之前,请使用以下命令对新下载的安装程序运行 SHA512 校验和,以验证是否下载成功certutil -hashfile c:\Users\Yourusername\Downloads\install-tl-windows.exe SHA512

4) 将其与您在步骤2中获得的校验和文件进行比较。如果匹配,则可以使用它进行安装。

相关内容