i need to install Homebrew on MacOs to upgrade my php version with :
-
echo 'export PATH="/usr/local/opt/php@7.2/bin:$PATH"' >> ~/.bash_profile
echo 'export PATH="/usr/local/opt/php@7.2/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
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?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.