我在Linux (Fedora 31)上安装了R-Studio。现在我想用R-Markdown来编织一个元素。在本例中,这是default- example模板。
但在编织过程结束时,会出现以下错误消息:
*** WARNING ***: Performing this action will likely destroy the Fedora TeXLive install on your system.
*** WARNING ***: This is almost NEVER what you want to do.
*** WARNING ***: Try using dnf install/update instead.
*** WARNING ***: If performing this action is really what you want to do, pass the "ignore-warning" option.
*** WARNING ***: But please do not file any bugs with the OS Vendor.
add of symlinks had 3 error(s), see messages above.
add_link_dir_dir: destination /usr/local/bin not writable, no links from /usr/share/texlive/bin/x86_64-linux.
add_link_dir_dir: destination /usr/local/share/info not writable, no links from /usr/share/texlive/texmf-dist/doc/info.
man symlink destination (/usr/local/share/man) not writable, cannot add symlinks.
tlmgr: An error has occurred. See above messages. Exiting.
! LaTeX Error: File `framed.sty' not found.
! Emergency stop.
<read *>
Fehler: LaTeX failed to compile test.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See test.log for more info.我能做些什么来解决这个问题?
发布于 2020-03-05 20:25:24
最好的办法是安装一个单独的tex-live副本,因为警告建议不要扰乱Fedora预先安装的tex-live版本,这很可能是Fedora中的其他资源所需要的。
首先下载texlive - https://www.tug.org/texlive/acquire-netinstall.html
您需要使目标文件夹对本地可用,因此将它们添加到您要安装tlgm的文件夹位置,缺省值为/usr/ $USER /$USER,-R是递归的。
$ sudo chown -R $USER /usr/local/
$ cd Downloads
$ $ tar -xzvf install-tl-unx.tar.gz
$ cd install-tl* # enter the tex-live main folder
$ perl install-tl您现在将在命令行界面中看到一个菜单选项。在"Enter Command“处键入"O + Enter”。

在下一个菜单上,按"L + Enter“创建一个指向用户可用的控制器的符号链接。在我的例子中是/usr/local/*。

最后,按"R + Enter“返回主菜单,然后按"I + Enter”开始安装tex-live。
最后,在sudoers中设置texlive路径,并将路径添加到Defaults secure path =以添加您的texlive二进制文件位置,即在我的机器上它是/usr/local/texlive/2019/bin/x86_64-linux
$ sudo nano /etc/sudoerhttps://stackoverflow.com/questions/60415292
复制相似问题