i need to install Homebrew on MacOs to upgrade my php version with :
-
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile
echo 'export PATH="/usr/local/opt/[email protected]/sbin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
but when i try to install to install homebrew i don't see some change i try this :
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
from homebrew doc site but when i use that i dont see where brew was instal and zhs says again that brew is not found so
CodePudding user response:
Homebrew is normally installed in /usr/local
(or if you're using an M1 Mac, /opt/homebrew
).
Try running /usr/local/bin/brew
or /opt/homebrew/bin/brew
. If neither of those work, there was most likely a failure during the installation of Homebrew. What was the output you got when you ran the install command?