-
Notifications
You must be signed in to change notification settings - Fork 335
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
Navigating errors when producing PDFs in ARM Linux containers #7676
Comments
Thanks for the feedback
I did add the link
When using Could it be the case ? Otherwise, I'll be happy to know which packages are missing. We tried to included in
You mean not using TinyTeX, is that it ? You recommend using TexLive directly from the OS package manager ? Just curious because I believe even when you do that, as long as Auto installation is not opt-out when using Quarto engine, it will still try to update and install missing tools. (https://quarto.org/docs/output-formats/pdf-engine.html#quarto-pdf-engine) We are aware of a "problem" where Quarto will install by default the monthly release, and we should have a switch to install the daily TinyTeX release instead (which is fresher)
We should definitely improve that - thanks ! Though this will probably be the case only when TinyTeX is not used, as I think we do make sure in TinyTeX that |
@cderv Thanks so much for this.
I experimented with this a bit and found that the if [ $OSNAME != 'Linux' -o $(uname -m) != 'x86_64' -o "$OSTYPE" != 'linux-gnu' ]; then
TINYTEX_INSTALLER="installer-unix"
fi
In linux-arm64 containers, In my test document (a few pages from a real project), I'm missing these three packages:
Ideally, TinyTex would be the best way of doing this, but it fails enough that it's hard to use it for automation. It occasionally fails when the script runs, leaving a broken install, and a subsequent run of the script complains about a texlive directory already being found (so, it can't just be brute forced by trying repeatedly). At a higher frequency, the Using Texlive from the Debian package repo works every time (at the cost of transfer/disk space). That's appealing for automation, where no one is watching. It's also appealing for training, where you want your Given where these errors happen, I think TinyTex is likely to be the best option once there's full ARM Linux support in releases, removing the need for the script-based install. |
Yes the script is from here: https://github.com/rstudio/tinytex/blob/main/tools/install-bin-unix.sh For aarch64, it will no install a bundle because we don't have one yet (rstudio/tinytex-releases#37) but I wonder if we have a problem there - not sure the installation goes as plan... 🤔
Agreed. I'll see how I can add build for ARM in our Github workflow. Any contribution welcome: We build eveything in https://github.com/rstudio/tinytex/blob/main/.github/workflows/build.yaml |
I spent a few hours wrangling PDF issues on linux-arm64 (Docker devcontainer on macOS). Ultimately, I did get it to work, and here's what I found.
quarto install tinytex
platform error does not provide any direction other than installing manually. A link to https://yihui.org/tinytex/#installation would be helpful here.tlmgr
updates that cause the problem above. However, be aware of the issue below.From #909:
This is not the case for Debian packages, and a lot of containers are Debian images. When using a Debian Texlive install, quarto produces a badly misleading error about updating Texlive, which ends up being wasted time, because
xelatex
missing is the real problem.This works on Debian:
Suggestions:
xelatex
better, particularly by not suggesting Texlive upgrades in cases where it's not the problem.Tasks
The text was updated successfully, but these errors were encountered: