Install Homebrew on Mac M2 #4341
-
Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 15 replies
-
You need the Xcode Command Line Tools before you install |
Beta Was this translation helpful? Give feedback.
-
Maybe someone with more experience can chime in here, but I found a bandaid solution that worked for me. Opened up my first mac in a few years today and experienced the exact same thing with it not recognizing the git install from XCode, even though zsh was telling me git was installed. Since the homebrew install script is a bash script, I opened a bash terminal and saw:
A google search led me to this stackexchange post. I then ran the following:
However, now you have brew installed in x86, not ARM. I then found this, which after following those directions (new non-x86 terminal) I was able to install homebrew. Make sure to follow the instructions to add it to the path. I also did the following afterwards:
To remove an x64 git that was clobbering my attempts to use ARM apps. And, ta-da! Good to go! (for now, it seems) Sorry if I missed a few steps, was just as frustrated trying to get it all working! |
Beta Was this translation helpful? Give feedback.
-
Also come across this issue. TL:DR, My path is root cause---- The root cause is the homebrew install script will try to use /usr/local/bin/git, which is bad CPU in type in the migration case. After rm it, brew will use the one in |
Beta Was this translation helpful? Give feedback.
-
Still facing the same issue on Mac M2 , didn't find any solution |
Beta Was this translation helpful? Give feedback.
Maybe someone with more experience can chime in here, but I found a bandaid solution that worked for me.
Opened up my first mac in a few years today and experienced the exact same thing with it not recognizing the git install from XCode, even though zsh was telling me git was installed.
Since the homebrew install script is a bash script, I opened a bash terminal and saw:
A google search led me to this stackexchange post.
I then ran the following:
However, now…