rstudio / tinytex

A lightweight, cross-platform, portable, and easy-to-maintain LaTeX distribution based on TeX Live
https://yihui.org/tinytex/
Other
983 stars 116 forks source link

tinytext shell installation fails on debian testing #431

Closed jangorecki closed 10 months ago

jangorecki commented 10 months ago

According to documentation at https://yihui.org/tinytex/#installation one can install tinytext in shell using

wget -qO- "https://yihui.org/tinytex/install-bin-unix.sh" | sh

When trying it out on debian I am not getting it successfully installed

sudo docker run -it --rm debian:testing
apt-get update
apt-get install -y wget
wget -qO- "https://yihui.org/tinytex/install-bin-unix.sh" | sh
Can't locate File/Find.pm in @INC (you may need to install the File::Find module) (@INC contains: /root/.TinyTeX/texmf-dist/scripts/texlive /root/.TinyTeX/tlpkg /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at ./tlmgr line 87.
BEGIN failed--compilation aborted at ./tlmgr line 87.

Could we have documentation improved to mention what else, other than wget is required.


By filing an issue to this repo, I promise that

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

cderv commented 10 months ago

This is related to

TeX Live requires Perl to be installed as a requirement. TeX Live people answer were that Debian image is misconfigured because it includes only perl-base which shouldn't be alone (from this answer https://github.com/rstudio/tinytex/issues/419#issuecomment-1681225570)

To solve this you need install perl

apt-get install -y perl

We added a note about perl but only on the R package function help page.

@yihui we should probably update on your website and maybe add a check in https://yihui.org/tinytex/install-bin-unix.sh ?

jangorecki commented 10 months ago

for those who may ended up here I may add that inside docker, aside from installing perl, we need to also manually add TinyText to path.

ENV PATH="${PATH}:/root/.TinyTeX/bin/x86_64-linux"
yihui commented 10 months ago

@yihui we should probably update on your website and maybe add a check in https://yihui.org/tinytex/install-bin-unix.sh ?

Done. Thanks!