Installing Polymake on Mac OS Monterey (M1 chip) using rosetta

Discussions on installation issues go here.
fab12
Posts: 3
Joined: 01 Mar 2020, 12:03

Installing Polymake on Mac OS Monterey (M1 chip) using rosetta

Postby fab12 » 24 Sep 2022, 12:41

Hey polymake folks!

For everyone having issues installing Polymake on mac OS Monterey with an m1 chip, it might be worth giving Apple's own Rosetta 2 a shot.

It enables using apps built for Intel Macs (further information here)). It can be installed via the command

Code: Select all

softwareupdate --install-rosetta
You can then open your favorite Terminal in "Rosetta-mode" by right clicking -> Get Info -> Open using Rosetta.
It might also be beneficial to have one "proper" Terminal and one "Rosetta-Terminal". (For further setup ideas see here).

Using this, resolve the dependencies using Homebrew in the Rosetta-terminal and compile polymake this way (it then also works from the normal terminal).

It might also be worth trying if the brew tap works using Rosetta!

I hope this post helps some people and happy polymaking everyone!

Best
Fabian

selman.ipek
Posts: 5
Joined: 25 Oct 2021, 12:47

Re: Installing Polymake on Mac OS Monterey (M1 chip) using rosetta

Postby selman.ipek » 05 Dec 2022, 09:18

Slightly related to this post: any tips on getting polymake to install properly (and natively) on apple silicon? Installing through the command line seemed not to work. Installing using the bundle, the system does not allow polymake to open terminal citing: "'polymake.run' can’t be opened because (null) is not allowed to open documents in Terminal."

paffenholz
Developer
Posts: 211
Joined: 24 Dec 2010, 13:47

Re: Installing Polymake on Mac OS Monterey (M1 chip) using rosetta

Postby paffenholz » 05 Dec 2022, 09:33

Installing through command line:
We do not have a Mac with an M1 or M2 processor, so we cannot test installation or precompile homebrew binaries for it. If you post the error messages you get we may give you some ideas how to solve them.

Using the bundle:
This is most likely a problem with access restrictions imposed by apple. Does Terminal have "Full disk access" (check in System Settings->Security). You may also need to unsandbox the bundle with

Code: Select all

sudo xattr -r -d com.apple.quarantine /Applications/polymake.app/
However, as the bundles are not compiled for M1/M2 I would expect that they don't work anyway, even if the permission problem is solved.

paffenholz
Developer
Posts: 211
Joined: 24 Dec 2010, 13:47

Re: Installing Polymake on Mac OS Monterey (M1 chip) using rosetta

Postby paffenholz » 17 Apr 2023, 16:51

The updated homebrew formula should work on all Macs (Intel/M1) with Big Sur or above. It has binaries for Intel/Big Sur, Intel/Monterey and M1/Ventura, on the other thre combinations it compiles from the sources:

Code: Select all

brew tap apaffenholz/polymake brew install polymake


Return to “Installing polymake”