With the latest Apple Silicon M1 Macs. Program compatibility was going to be an issue with early adopters as not all applications for the M1 which uses a different arm architecture compared to intel architecture apps. For Apple to get around this problem, they introduced Rosetta 2. This app is sort of an emulation software. This allows Intel Apps to be M1 arm architecture.
One of the apps I used is the homebrew. As per the time of writing this blog post. It is not yet supported.
If you go brew.sh and run installing command from your terminal
You’ll be greeted with this error
Homebrew is not (yet) supported on ARM processors!
Rerun the Homebrew installer under Rosetta 2.
If you really know what you are doing and are prepared for a very broken
experience you can use another installation option for installing on ARM:
https://docs.brew.sh/Installation
There are two ways to get around this.
You can specify to use rosetta 2 by “arch -x86_64″ then the bash command”
Or you can open the Terminal.app and right click then Get Info(Command+i). Then tick the option Open with Rosetta. Restart the terminal and not need to specify the architecture, you would be able to run the install command as is.
If you would like to use the native terminal. You can clone the Terminal app and have one version to open in Rosetta and the other as is.
So if the application you are trying to install it not yet compatible with M1/Arm. Then install using the Rosetta Terminal.