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

Command to install does not work on Mac (M2 chip) #943

Closed
cossio opened this issue Oct 3, 2022 · 8 comments
Closed

Command to install does not work on Mac (M2 chip) #943

cossio opened this issue Oct 3, 2022 · 8 comments

Comments

@cossio
Copy link

cossio commented Oct 3, 2022

I tried running the following command on a MacBook (M2 chip):

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

It gives the following error:

tectonic(drop-installer.sh): unknown CPU type: arm64

Is there any other way to install?

@pkgw
Copy link
Collaborator

pkgw commented Oct 4, 2022

For Macs on ARM chips ("Apple Metal", right?), you have to compile it yourself or use the conda-forge package, because we don't yet have CI builds for that platform. I've started playing around with seeing if I can get a build going because it would definitely be nice to have, but we use Azure Pipelines for CI and they don't have Metal native hosts (I think??) so it will probably take a while to get anything going.

edit: or use Homebrew, thanks for the tip @cossio!

@cossio
Copy link
Author

cossio commented Oct 4, 2022

I got it installed with homebrew: brew install tectonic works fine.

@pkgw
Copy link
Collaborator

pkgw commented Oct 25, 2022

In #959 I've prototyped a CI job to create a Tectonic build for Apple Metal. Would anyone be able to give this file a spin and see if it works? Thanks!

https://newton.cx/~peter/files/tectonic-0.11.0+20221025-aarch64-apple-darwin.tar.gz

@pkgw
Copy link
Collaborator

pkgw commented Oct 27, 2022

OK, hopefully this is fixed with the 0.12 release and tectonic-typesetting/tectonic-typesetting.github.io#44!

@ghost
Copy link

ghost commented Oct 31, 2022

@pkgw 👋
I downloaded that M1 build and tried executing raw.
Apple does not like it since it is not signed.
Screen Shot 2022-10-31 at 4 34 37 PM

I executed this:

 xattr -d com.apple.quarantine tectonic

Then, I verified it executes!

./tectonic -V
Tectonic 0.11.0+20221025

@pkgw
Copy link
Collaborator

pkgw commented Nov 1, 2022

Thanks! If anyone can try the curl -fsSL https://drop-sh.fullyjustified.net/ |sh installer on Apple Silicon, I think that should work now too, but I don't think I've seen any confirmation of that.

@ghost
Copy link

ghost commented Nov 2, 2022

$ curl -fsSL https://drop-sh.fullyjustified.net/ | sh
tectonic(drop-installer.sh): downloading version 0.12.0 for architecture aarch64-apple-darwin
Warning: Not enforcing strong cipher suites for TLS, this is potentially less secure
Warning: Detected OS X platform older than 10.13
Warning: Not enforcing TLS v1.2, this is potentially less secure

tectonic(drop-installer.sh): woohoo, the `tectonic` program has been unpacked into the current directory!
tectonic(drop-installer.sh): consider moving it to a directory in $PATH so that it can be run from anywhere

And

./tectonic -V
Tectonic 0.12.0

@pkgw
Copy link
Collaborator

pkgw commented Nov 2, 2022

Awesome, thanks!

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

2 participants