Closed willfaught closed 8 months ago
Figured out the issue. Needed to change my shell to /bin/bash, restart Terminal, uninstall, then install.
That shouldn't be needed, but if uname is wrong you're probably running under Rosetta and that will detect as x86
Yes, I think the issue was that my default shell was fish, installed via Homebrew, which was amd64, so everything installed/built with that was also amd64. By resetting to /bin/bash, I got an arm64 shell, which I could use to install an arm64 Homebrew, and then an arm64 fish shell.
install
oruninstall
script?brew config
andbrew doctor
and included their output with your issue? If you couldn't install: provided your OS version with the output of your issue?What you were trying to do (and why)
Install Homebrew on my new M3 Pro MacBook Pro after using Migration Assistant to migrate from my Intel Mac.
What happened (include command output)
On the M3 Mac, using Terminal.app, I uninstalled Homebrew:
I installed Homebrew:
My brew config:
My brew doctor:
My brew prefix:
What you expected to happen
I expected it to install to /opt/homebrew. Instead, it installed to /usr/local.
It looks like this happens because Homebrew's install.sh looks at the output of
/usr/bin/uname -m
, which on my M3 Pro Mac isx86_64
instead ofarm64
for some reason./usr/bin/uname -a
isDarwin tmps-MacBook-Pro.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 x86_64
.which bash
is/bin/bash
.Open using Rosetta
is disabled in the info for Terminal.app.Step-by-step reproduction instructions (by running
brew
commands)