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

Quarto does not complete tinytex install on ubuntu #326

Closed
melissa-barca opened this issue Feb 9, 2022 · 3 comments
Closed

Quarto does not complete tinytex install on ubuntu #326

melissa-barca opened this issue Feb 9, 2022 · 3 comments
Assignees

Comments

@melissa-barca
Copy link

We originally saw this issue in the IDE's automated builds, and I'm able to reproduce locally.

On ubuntu,quarto tools install tinytex does not properly install tinytex:

$ quarto tools install tinytex
Installing tinytex
[✓] Downloading TinyTex v2022.02
[✓] Unzipping TinyTeX-v2022.02.tar.gz
[✓] Moving files
[✓] Verifying tlgpg support
[✓] Default Repository: https://mirror.las.iastate.edu/tex-archive/systems/texlive/tlnet/
[✓] Updating paths
Installation successful

To complete this installation, please restart your system.

$ quarto tools
[✓] Reading Tool Data
Tool                Status                          Installed     Latest
tinytex             Not installed                   v2022.02      v2022.02

While there is a message instructing the user to restart their system, this doesn't fix the issue. Only after manually updating the PATH, does quarto finds tinytex:

$ PATH=$PATH:~/bin
$ quarto tools
[✓] Reading Tool Data
Tool                Status                          Installed     Latest
tinytex             Up to date                      v2022.02      v2022.02

On macOS, running quarto tools install tinytex works as I'd expect and quarto is able to find it immediately:

$ quarto tools install tinytex 
Installing tinytex
[✓] Downloading TinyTex v2022.02
[✓] Unzipping TinyTeX-v2022.02.tgz
[✓] Moving files
[✓] Verifying tlgpg support
[✓] Default Repository: https://mirrors.rit.edu/CTAN/systems/texlive/tlnet/
[✓] Updating paths
Installation successful

$ quarto tools 
[✓] Reading Tool Data
Tool                Status                          Installed     Latest
tinytex             Up to date                      v2022.02      v2022.02
@dragonstyle dragonstyle self-assigned this Mar 8, 2022
@dmbates
Copy link

dmbates commented Apr 5, 2022

I had a similar issue on Ubuntu with an error message about linking across file systems.

$ quarto -V
0.9.185
$ quarto tools install tinytex
Installing tinytex
[✓] Downloading TinyTex v2022.04.04
[✓] Unzipping TinyTeX-v2022.04.04.tar.gz
[✓] Moving files
ERROR: Invalid cross-device link (os error 18), rename '/tmp/f4461af1/.TinyTeX' -> '/home/bates/.TinyTeX'

On this computer / and /home are on different partitions.

@dragonstyle
Copy link
Collaborator

I had a similar issue on Ubuntu with an error message about linking across file systems.

Thanks for letting us know - the fix should be here:
bad6825

A fresh release is being built now.

@dragonstyle
Copy link
Collaborator

OK I've made a number of improvements to the installation and uninstallation. We now:

  • Will try to find the best bin path to use for creating a symlink on the path (by checking the path)
  • Will continue to install when symlink creation fails, but provide a user warning that provides commands to use to complete the installation (with the user providing the target bin path)
  • Ensure that even with no symlinks, TinyTeX can be uninstalled
  • Show warnings about incomplete installation when the user runs quarto tools to check status

In the CI case above, its possible that we will not be able to find a writable bin path, in which case you'll need to follow the instructions to point tinytex at a writable bin path.

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