tectonic icon indicating copy to clipboard operation
tectonic copied to clipboard

Command to install does not work in Ubuntu docker on Mac (M1 Chip)

Open utensil opened this issue 2 years ago • 4 comments

I tried running the following command in Ubuntu docker (mcr.microsoft.com/devcontainers/base:ubuntu) on Mac (M1 Chip):

curl --proto '=https' --tlsv1.2 -fsSL https://drop-sh.fullyjustified.net |sh

It gives the following error:

tectonic(drop-installer.sh): downloading version 0.14.1 for architecture aarch64-unknown-linux-gnu
curl: (22) The requested URL returned error: 404
tectonic(drop-installer.sh): command failed: downloader https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.14.1/tectonic-0.14.1-aarch64-unknown-linux-gnu.tar.gz tectonic-0.14.1-aarch64-unknown-linux-gnu.tar.gz aarch64-unknown-linux-gnu

Is there any other way to install? Or what's the recommended way to do so in this case? Thanks in advance!

P.S. This is like #943, but this time it's for Linux aarch64 .

utensil avatar Sep 30 '23 10:09 utensil

It seems #943 provides an answer. There are no builds for Apple silicon, you'll have to compile tectonic yourself.

Your simplest option is probably cargo install tectonic.

rm-dr avatar Oct 04 '23 21:10 rm-dr

Thanks for the reply, but my issue is actually that now Apple silicon works but not in the Linux aarch64 docker on it. And cargo install tectonic doesn't work too. That's why I open an issue to see if this scenario can have an official build too since running docker on Apple silicon seems to be as common as running directly on Apple silicon.

utensil avatar Oct 07 '23 04:10 utensil

The following works for now and takes a reasonable amount of time (~3min):

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
sudo apt install -y pkg-config libssl-dev libicu-dev libgraphite2-dev libfreetype6-dev libfontconfig1-dev
cargo install tectonic

utensil avatar Oct 07 '23 05:10 utensil

Is it possible to add Linux aarch64 binary? Is there extra maintenance overhead involved?

utensil avatar Oct 15 '23 13:10 utensil