Can I install arm64 libraries on x86_64 with homebrew? #2843
-
I am cross-compiling on x86_64 MacOS 11 for arm64 architecture.
So the question is wheather there is an option to force brew install bottles for 'foreign' architecture ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 14 replies
-
Not easily, since this isn't really a supported use-case. What you can do is something like
This won't work if you already have the x86_64 version of the formula installed, though. |
Beta Was this translation helpful? Give feedback.
-
@DBraun (some two-way scripts here https://github.com/tamatebako/tebako-tools/tree/master/ci-scripts) I didn't have time to make it as neat as the commenters suggested, but it works There are more suggestions here: https://stackoverflow.com/questions/70821136/can-i-install-arm64-libraries-on-x86-64-with-homebrew/70822921#70822921 |
Beta Was this translation helpful? Give feedback.
Not easily, since this isn't really a supported use-case.
What you can do is something like
This won't work if you already have the x86_64 version of the formula installed, though.