I no longer can get Homebrew to function, zsh: command not found: brew #5259
Replies: 11 comments 28 replies
-
What does |
Beta Was this translation helpful? Give feedback.
-
You can see an entry for each time that I have entered the commands to pull “activate” Homebrew.
However, there is no ORIGINAL version in .zprofile.pysave if that means anything. Just something for Python 3.8 and 3.9.
# Setting PATH for Python 3.11
# The original version is saved in .zprofile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.11/bin:${PATH}"
export PATH
eval $(/opt/homebrew/bin/brew shellenv)
eval $(/opt/homebrew/bin/brew shellenv)
eval $(/opt/homebrew/bin/brew shellenv)
eval "$(/opt/homebrew/bin/brew shellenv)"
eval $(/opt/homebrew/bin/brew shellenv)
eval "$(/opt/homebrew/bin/brew shellenv)"
eval $(/opt/homebrew/bin/brew shellenv)
eval "$(/opt/homebrew/bin/brew shellenv)"
eval $(/opt/homebrew/bin/brew shellenv)
eval "$(/opt/homebrew/bin/brew shellenv)"
… On Apr 4, 2024, at 1:38 PM, Sean Molenaar ***@***.***> wrote:
What does cat ~/.zprofile say regarding Homebrew?
—
Reply to this email directly, view it on GitHub <#5259 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AM4R6IQ5VCXXX3ZVDFXDFOLY3WM3LAVCNFSM6AAAAABFXZDQ42VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TAMJTGM2TE>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
So does this need to become a brew issue, it feels like brew is broken. |
Beta Was this translation helpful? Give feedback.
-
I do not know why it would have stopped working suddenly. It continues to work on Ventura.
As per your request:
% bash list
bash: list: No such file or directory
% echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
… On Apr 5, 2024, at 2:41 AM, Sean Molenaar ***@***.***> wrote:
Brew is fine, you're just in a curious situation where your shell environment is not working.
What happens if you reduce all those eval lines in ~/.zprofile to just one and then reboot your Mac. If it doesn't work after, let me know what echo $PATH says.
—
Reply to this email directly, view it on GitHub <#5259 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AM4R6IURHP3MXALGHUH3HHTY3ZISHAVCNFSM6AAAAABFXZDQ42VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TAMJYGIYDE>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
I also tried changing the path directly:
export PATH=$PATH/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/opt/homebrew/bin/
And entered it into .zshrc; however; it has no effect.
But it does as a direct command line entry from terminal (one session only) just like the other commands.
… On Apr 5, 2024, at 2:41 AM, Sean Molenaar ***@***.***> wrote:
Brew is fine, you're just in a curious situation where your shell environment is not working.
What happens if you reduce all those eval lines in ~/.zprofile to just one and then reboot your Mac. If it doesn't work after, let me know what echo $PATH says.
—
Reply to this email directly, view it on GitHub <#5259 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AM4R6IURHP3MXALGHUH3HHTY3ZISHAVCNFSM6AAAAABFXZDQ42VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TAMJYGIYDE>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
This is a brand new Mac Mini, M2. macOS Sonoma Version 14.4.1I do not know if it matters, but .zprofile.pysave has no "# Setting PATH for Python . . . etc" for Python 3.11 as it does for versions 3.8 & 3.9. nor any thing else reflecting current activity. I thought about taking this to the Apple Support Community, but the first thing that they will do is jump me for having Homebrew on the box. |
Beta Was this translation helpful? Give feedback.
-
I finally got something to work, but I do not feel that it is a true long term solution. It took two path change edits to .zshrc: export PATH=/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin |
Beta Was this translation helpful? Give feedback.
-
I'd bet you're actually resetting your Run the following command:
then post the contents of |
Beta Was this translation helpful? Give feedback.
-
Here is something that I forgot about. When I set up this Mac mini, I did not use the new computer option, but used the copy from another Mac, in this case a 2017 intel iMac. So in reality I suppose that it was not really a new CLEAN mini. |
Beta Was this translation helpful? Give feedback.
-
More like walking away from a duct-taped pinhole in a pressure vessel. The underlying problem is still there, but you're assuming it won't affect anything else now and forever. |
Beta Was this translation helpful? Give feedback.
-
Output of
brew config
Output of
brew doctor
Description of issue
I just got a new Mac mini (M2) and Sonoma 14.4.1. I had no issues getting Homebrew to function after installing it on my old iMac and Ventura and previous versions of macOS/osX
If I use the recommended:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/me/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
I can get brew commands to work for THAT terminal session only. I just discovered that I can only get things that were installed by Homebrew such as Python3.11 to work during that same terminal session only also.
Therefore, once I exit the terminal and quit it, all things Homebrew are gone when I reopen terminal and I have to go through entering those commands again.
When I have brew working I get no negative reports from brew doctor.
Is there a real fix for this?
Beta Was this translation helpful? Give feedback.
All reactions