Page 1 of 1

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

Posted: 24 Sep 2022, 12:41
by fab12
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

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

Posted: 05 Dec 2022, 09:18
by selman.ipek
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."

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

Posted: 05 Dec 2022, 09:33
by paffenholz
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.

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

Posted: 17 Apr 2023, 16:51
by paffenholz
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