【问题标题】:TinyTex isn't working anymore with rmarkdown (maybe Path problems?)TinyTex 不再适用于 rmarkdown (可能是路径问题?)
【发布时间】:2021-06-16 18:18:40
【问题描述】:

tinytex 有一个大问题。当我试图编织我的文档时,它说 R 找不到“pdflatex”。所以我试图重新安装它,但这让事情变得更糟!我现在什至无法正确安装 tinytex。

最近我安装了 Python 并在 PATH 中更改了一些内容。那么,也许问题就在这里? 这是我的错误:

tlmgr search --file --global "/setspace.sty"
Use of uninitialized value $ver in scalar chomp at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 194.
Use of uninitialized value $ver in substitution (s///) at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 195.
Use of uninitialized value $ver in substitution (s///) at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 195.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2708.
Setting up tar with C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/installer/tar.exe as C:\Users\Fabi\AppData\Roaming\TinyTeX\tlpkg\installer\tar.exe didn't work
Can't spawn "cmd.exe": No such file or directory at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2691.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2691.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2708.
Setting up curl with C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/installer/curl/curl.exe as C:\Users\Fabi\AppData\Roaming\TinyTeX\tlpkg\installer\curl\curl.exe didn't work
Can't spawn "cmd.exe": No such file or directory at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2691.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2708.
Setting up wget with C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/installer/wget/wget.exe as C:\Users\Fabi\AppData\Roaming\TinyTeX\tlpkg\installer\wget\wget.exe didn't work
Can't spawn "cmd.exe": No such file or directory at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2691.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2708.
Setting up lz4 with C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/installer/lz4/lz4.exe as C:\Users\Fabi\AppData\Roaming\TinyTeX\tlpkg\installer\lz4\lz4.exe didn't work
Can't spawn "cmd.exe": No such file or directory at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2691.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2691.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2708.
Setting up xz with C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/installer/xz/xz.exe as C:\Users\Fabi\AppData\Roaming\TinyTeX\tlpkg\installer\xz\xz.exe didn't work
cannot contact mirror.ctan.org, returning a backbone server!

C:\Users\Fabi\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl: TLPDB::from_file could not initialize from: https://www.ctan.org/tex-archive/systems/texlive/tlnet/tlpkg/texlive.tlpdb
C:\Users\Fabi\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl: Maybe the repository setting should be changed.
C:\Users\Fabi\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl: More info: https://tug.org/texlive/acquire.html
! LaTeX Error: File `setspace.sty' not found.

! Emergency stop.
<read *>

【问题讨论】:

标签: r r-markdown tex tinytex


【解决方案1】:

我发现了问题!这是环境变量中我的 PATH 的问题。我添加了system32的路径,tlmgr可以启动cmd来下载所有丢失的包。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-01-05
    • 2016-05-07
    • 2021-05-14
    • 2012-08-29
    • 2011-07-12
    • 2018-11-12
    • 2016-09-02
    • 2014-02-15
    相关资源
    最近更新 更多