Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)
For what it's worth, before installing Homebrew you will need to install Rosetta2 emulator for the new ARM silicon (M1 chip). I just installed Rosetta2 via terminal using:
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
This will install rosetta2 with no extra button clicks.
After installing Rosetta2 above you can then use the Homebrew cmd and install Homebrew for ARM M1 chip: arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Once Homebrew for M1 ARM is installed use this Homebrew command to install packages: arch -x86_64 brew install <package>
Homebrew incompatible architecture error on M1 MacBook
Deleting /Library/Developer/CommandLineTools
with sudo rm -rf /Library/Developer/CommandLineTools
and running /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Related Topics
Why Isn't Current Directory on My Ruby Path
Convert Array of 2-Element Arrays into a Hash, Where Duplicate Keys Append Additional Values
How to Compile and Statically Link Ruby Libs for Docker
Putting French (Accented) Characters in Ruby File
What Are the Magic $-Prefixed Variables in Ruby
Rails Engines Extending Functionality
How to Remove the Bom from a Utf-8 Encoded File
How to Sort an Array in Ruby to a Particular Order
"Certificate Verify Failed" Openssl Error When Using Ruby 1.9.3
Ruby: How to Copy a Variable Without Pointing to the Same Object
How to Edit or Write on Existing Pdf With Ruby
Can't Install Ruby on Rails with Rvm on Ubuntu 13.04
Popen Getting Pid of Newly Run Process
How to Match Accented Characters With a Regex
Find the Newest Record in Rails 3