Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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>
Comment

Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!

Mac M1 install any package using homebrew command: 
arch -x86_64 brew install <package_name>

https://facebook.com/swdrana
https://github.com/swdrana
Comment

brew Cannot install on Intel processor in ARM default prefix (/opt/homebrew)!

If you moving from M1&M2 to intel 

If you still have access to the M1 Mac:

On the M1 Mac, run brew bundle dump and copy the resulting Brewfile to your Intel Mac
On the Intel Mac
Remove /opt/homebrew
Install brew using the instructions on brew.sh
Run brew bundle install --file /path/to/Brewfile to reinstall packages
If you don't have access to your M1 Mac any longer, run ls /opt/homebrew/Cellar on the new Mac to get a list of installed packages, followed by step 2.1 and 2.2 from above. Then manually install the packages again.
Comment

PREVIOUS NEXT
Code Example
Shell :: install docker linux mint 
Shell :: nginx post size 
Shell :: install cloudlinux centos with cpanel 
Shell :: docker hello world 
Shell :: adb logcat unity 
Shell :: how to check in which brach we are in git 
Shell :: do you need to install type definitions for node 
Shell :: ubuntu install libc6-i386 
Shell :: Install dia for linux ubuntu 
Shell :: git push / git init 
Shell :: run a command x number of times linux 
Shell :: Brave on Fedora 28+, CentOS/RHEL 8+ 
Shell :: make fish as default 
Shell :: how to check all origins of a git 
Shell :: open firewall port in ububut 
Shell :: zsh autosuggestions 
Shell :: linux check gpu usage 
Shell :: ping ip v4 
Shell :: how to convert ts to mp4 with ffmpeg 
Shell :: Missing essential plugin: org.jetbrains.android Please reinstall Android Studio from 
Shell :: ssh-copy-id windows 
Shell :: how to check hard disk space linux 
Shell :: git commit no message 
Shell :: git remove tracked files without deleting 
Shell :: search for a package name in conda 
Shell :: nx: command not found 
Shell :: install docker on centos 
Shell :: linux list groups 
Shell :: - laravel/installer is locked to version v3.2.0 and an update of this package was not requested. 
Shell :: linux format usb command line 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =