Tex Live安装问题 | 豆包MarsCode AI刷题

142 阅读1分钟

我在Tex Live官网下载install-tl-windows.exe文件,安装时报错

error writing "file253dc83b710": broken pipe
error writing "file253dc83b710": broken pipe
    while executing
"chan puts $::inst "checkdir""
    (procedure "update_full_path" line 6)
    invoked from within
"update_full_path"
    (procedure "texdir_setup" line 88)
    invoked from within
"texdir_setup"
    invoked from within
".tdirb invoke "
    invoked from within
".tdirb instate !disabled { .tdirb invoke } "
    invoked from within
".tdirb instate pressed { .tdirb state !pressed; .tdirb instate !disabled { .tdirb invoke } } "
    (command bound to event)

查询后应该是GUI问题,需要绕过GUI进行安装

编写profile文件

如:my_profile.txt(C:\Tool\Tex Live为安装路径):

# Example profile for TeX Live installation in C:\Tool\Tex Live
TEXDIR C:\Tool\Tex Live
TEXMFCONFIG C:\Tool\Tex Live\texmf-config
TEXMFHOME C:\Tool\Tex Live\texmf-home
TEXMFLOCAL C:\Tool\Tex Live\texmf-local
TEXMFSYSCONFIG C:\Tool\Tex Live\texmf-config
TEXMFSYSVAR C:\Tool\Tex Live\texmf-var
TEXMFVAR C:\Tool\Tex Live\texmf-var
binary_win32 1
selected_scheme scheme-full

添加环境变量

Path中添加install-tl-windows.exe文件所在地址,如C:\Users\z\Downloads

打开powershell

进入install-tl-windows.exe所在位置,如:

cd "C:\Users\z\Downloads"

绕过GUI进行安装

install-tl-windows.exe --no-gui --profile="C:\Users\z\Downloads\my_profile.txt"

添加环境变量

在Path中添加,如:C:\Tool\Tex Live\bin\win32