The chromium binary is not available for arm64

Viewed 1404

I am using rush and trying to run rush install in a project I cloned from one of my company's repositories. But, it fails by throwing the following error:

The chromium binary is not available for arm64: 
  If you are on Ubuntu, you can install with:
  apt-get install chromium-browser

Note: I'm using iTerm2 terminal for all this running on an Apple Macbook Pro having Monterey as the OS, powered by the Apple M1 Pro chip.

PS I tried to look for answers o'er the web and found this post but the answer doesn't seem to work for me.

1 Answers

The Apple M1 differs from Intel processors used in previous MacBooks in many respects. The M1 is an ARM processor, not an x86 processor. It integrates more components than an Intel CPU like the RAM itself in the same package. Hence, several critical CLI tools like nvm and brew do not have native versions built for the new M1 architecture.

 Using Apple's translation layer Rosetta 2, we can easily download and compile applications that were built for x86 and run them on M1. All you have to do is force your native terminal to run with Rosetta 2. You can choose to create a duplicate of the original terminal to keep the default settings on the other one. How?



Step 1 : Go to your Applications folder and find Terminal application in the Utilities folder therein.

Step 2 : Duplicate the app by clicking the option of the same name in the context menu that comes up on the right click of it.

Step 3 : Right click on the duplicated Terminal app and select the Get Info option. In the dialogue box that pops up, check the “Open using Rosetta” checkbox and close.



Step 4 : Now, open this new Rosetta Terminal and install all your packages using it and you’re good to go. :)

To confirm that the terminal you are using is running Rosetta, run arch command and it should output i386, arm64 otherwise. I recommend using Rosetta terminal for installing your command line tools and using the Native Terminal for your daily workflow.

Related