Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tinytex should not assume in can write to /usr/local/bin on Linux #181

Closed
3 tasks done
cboettig opened this issue Feb 27, 2020 · 4 comments
Closed
3 tasks done

tinytex should not assume in can write to /usr/local/bin on Linux #181

cboettig opened this issue Feb 27, 2020 · 4 comments

Comments

@cboettig
Copy link

tinytex assumes it can write symlinks to /usr/local/bin. Issue #38 suggests that on MacOS, users typically have permissions to do so, and so perhaps this makes sense as the MacOS behavior. On Linux platforms, users don't typically have write permission to /usr/local/bin and it is often not desirable for regular users to modify /usr/local/bin.

For a bit of context: on Ubuntu, I cannot get tinytex installation to work following the root/multi-user recipe we'd worked out on the debian rocker stack (and is documented in the tinytex faq). I did a clean minimal texlive with a custom texlive profile, rocker-org/rocker-versioned2#10, that also puts texlive under /opt and grants users permissions there. In this setup, tinytex can still do it's magic of automatically installing necessary style files with tlmgr on rmarkdown::render, the only downside is we get a lot of 'false-alarm' error messages about not being able to write to `/usr/local/bin.


By filing an issue to this repo, I promise that

  • I have fully read the issue guide at https://yihui.name/issue/.
  • I have provided the necessary information about my issue.
    • If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
    • If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('tinytex'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('yihui/tinytex').
    • If I have posted the same issue elsewhere, I have also mentioned it in this issue.
  • I have learned the Github Markdown syntax, and formatted my issue correctly.

I understand that my issue may be closed if I don't fulfill my promises.

@yihui

This comment has been minimized.

@yihui
Copy link
Member

yihui commented Mar 3, 2020

Oh wait a second; 8cdaffd doesn't seem to be enough to suppress the messages. Hold on. I'll look further into it.

@yihui yihui closed this as completed in c392b62 Mar 3, 2020
@yihui
Copy link
Member

yihui commented Mar 3, 2020

Should be fixed now. Thanks for the report!

@kaigu1990
Copy link

kaigu1990 commented Mar 20, 2020

Hi, I have a same question.

I used this way wget -qO- "https://yihui.org/gh/tinytex/tools/install-unx.sh" | sh -s - --admin --no-path to install tinytex, and then added symlinks to /usr/local/bin. Then I found the lack of 'xcolor.sty', so tlmgr_search('xcolor.sty'), and tlmgr_install('xcolor').

But errors happened, add_link_dir_dir: destination /usr/local/bin not writable, no links from /home/rocheuser/.TinyTeX/bin/x86_64-linux. tlmgr: An error has occurred. See above messages. Exiting. add of symlinks had 1 error(s), see messages above.

Thanks!

Edit----------------------------------------
Sorry, it's my fault. By tlmgr(c('info', '--list', '--only-installed', '--data', 'name')), I find the xcolor is installed. So I just need to add symlinks to /usr/local/bin again. It's ok now!

Thanks!

yihui added a commit that referenced this issue May 13, 2020
…created by `tlmgr path add` (not 100% sure, but should be fairly sure under these conditions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants