How do I install CLI tools "under Rosetta 2" on MacBook M1?

Viewed 3829

After getting a MacBook M1 2020 - I found most of my command line tools could no longer be installed. I presume this was because the tools were compiled to run on an Intel based chipset, and not the new Apple Chipset (citation needed).

Here is an example:

APP is not (yet) supported on ARM processors!
Rerun the APP installer under Rosetta 2.

How do I install an app "under Rosetta 2"?

2 Answers

I found the solution here, which worked a treat.

In Terminal, use

arch -x86_64 zsh

to start a shell under Rosetta 2

Addendum: I created a rosetta alias, so I can switch in the future:

echo 'alias rosetta="arch -x86_64 zsh"' >> ~/.zshrc

install rosetta and skip the license agreement

softwareupdate --install-rosetta --agree-to-license
Related