首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Linux上编织的R-Markdown问题

在Linux上编织的R-Markdown问题
EN

Stack Overflow用户
提问于 2020-02-26 21:42:19
回答 1查看 194关注 0票数 0

我在Linux (Fedora 31)上安装了R-Studio。现在我想用R-Markdown来编织一个元素。在本例中,这是default- example模板。

但在编织过程结束时,会出现以下错误消息:

代码语言:javascript
复制
*** 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.

我能做些什么来解决这个问题?

EN

回答 1

Stack Overflow用户

发布于 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是递归的。

代码语言:javascript
复制
$ 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

代码语言:javascript
复制
$ sudo nano /etc/sudoer
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60415292

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档