Brosetta

M1 Macs are amazing. Unfortunately, using brew on them is a pain in the butt. If you, like me, made it pretty far using ARM native everything but ran into something you just couldn’t make work (in a twist of irony it was the AVR cross-compiler), try my “brosetta” technique.

Follow the mysterious direction “reinstall brew under Rosetta 2”:

sudo arch -x86_64 sh -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Add an alias for the Rosetta version of brew to your ~/.zshrc:

alias brosetta='arch -x86_64 /usr/local/bin/brew'

When you run into a package you can’t get to work with the native brew, call in the bro:

brosetta install qmk/qmk/qmk

Leave a Reply

Your email address will not be published. Required fields are marked *