Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

struct

macrumors newbie
Original poster
May 7, 2023
1
0
Hello everyone,

I was following the instructions here:


to install homebrew... I get the "Install successful" message, I've rebooted... but when I try the brew command its not recognized. I'm new to mac so I'm not sure what went wrong.

Has anyone else run into this?

Thanks in advance!
 
Hello everyone,

I was following the instructions here:


to install homebrew... I get the "Install successful" message, I've rebooted... but when I try the brew command its not recognized. I'm new to mac so I'm not sure what went wrong.

Has anyone else run into this?

Thanks in advance!

I used install instructions from brews official site. Not had any issues at all

 
  • Like
Reactions: kitKAC
You have to make sure the brew location and directories have been added to you path variable for your shell.
This is my brew config file that I load from .bash_profile or .zsh_profile
Bash:
# Homebrew - ARM64 & i86_64
arch_name="$(uname -m)"

if [ "${arch_name}" = "x86_64" ]; then
    if [ "$(sysctl -in sysctl.proc_translated)" = "1" ]; then
        echo "Running on Rosetta 2"
        export PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/local/sbin:$PATH
        alias ibrew='arch -x86_64 /usr/local/bin/brew'
    else
        echo "Homebrew running on native Intel"
        export PKG_CONFIG_PATH=/opt/homebrew/opt/zlib/lib/pkgconfig/
        export PATH=/usr/local/bin:/usr/local/sbin:$PATH
    fi 
elif [ "${arch_name}" = "arm64" ]; then
    echo "Homebrew running on ARM"
    export PKG_CONFIG_PATH=/opt/homebrew/opt/zlib/lib/pkgconfig/
    export PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/local/sbin:$PATH
    alias ibrew='arch -x86_64 /usr/local/bin/brew'
    # alias brew=/opt/homebrew/bin/brew'
else
    echo "Unknown architecture: ${arch_name}"
fi

#mint installed - "brew install mint"
if [ -d ~/.mint/bin ]; then
    export PATH=~/.mint/bin:$PATH
    echo "You got .mint(s)"
fi

# Qt15 or other?

if [ -d "/opt/homebrew/Cellar/qt@5/5.15.6/" ]; then
    export QTDIR="/opt/homebrew/Cellar/qt@5/5.15.6/"
    export Qt_5_dir="/opt/homebrew/Cellar/qt@5/5.15.6/"   
    export QT_DIR="/opt/homebrew/Cellar/qt@5/5.15.6/"   
#    export Qt5_DIR=$(brew --prefix qt)     # for Dolphin
    echo "Qt15 BREW: QTDIR = $QTDIR"
    export QTLIB=$QTDIR/lib
    export QTINCLUDE=$QTDIR/include
    export QTPLUGINS=$QTDIR/plugins
    export QTPATH=$QTDIR/bin
    export QTBIN=$QTDIR/bin
    export LDFLAGS="-L$QTDIR/lib"
    export CPPFLAGS="-I$QTINCLUDE"
    export PATH=$QTPATH:$PATH
fi

# export PKG_CONFIG_PATH=/opt/homebrew/opt/zlib/lib/pkgconfig/
# export PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/local/sbin:$PATH
# alias ibrew='arch -x86_64 /usr/local/bin/brew'
# alias brew=/opt/homebrew/bin/brew'
 
  • Like
Reactions: stradify
Hello everyone,

I was following the instructions here:


to install homebrew... I get the "Install successful" message, I've rebooted... but when I try the brew command its not recognized. I'm new to mac so I'm not sure what went wrong.

Has anyone else run into this?

Thanks in advance!

When you install Homebrew the first time, there is some dialog with additional commands that need to be entered into the Terminal to make it work correctly. It sounds like you missed that step post-installation, which would explain why you cannot get the brew command to run.
 
Hey. I'm looking at installing Homebrew so that I can use Stable Diffusion but just had a few questions.

Is Homebrew safe to use?
Can you easily uninstall it if you have any problems?
If I'm only using it to install Stable Diffusion, will it affect anything else on my system?

Thanks.
 
"DiffusionBee is the easiest way to generate AI art on your computer with Stable Diffusion. Completely free of charge.
Runs offline. No limits."
https://diffusionbee.com/
Thanks for that. I'll check it out! 👍

One of the reasons I was looking to use Stable Diffusion was to create animated AI videos - I'd seen a few trippy ones on Instagram... not sure if I can post them but the camera moves around and through the image as it changes and morphs into different things.

I don't think that is possible with DiffusionBee but do you know if there is anything similar that can do that?

Thanks! 👍
 
Hello everyone,

I was following the instructions here:


to install homebrew... I get the "Install successful" message, I've rebooted... but when I try the brew command its not recognized. I'm new to mac so I'm not sure what went wrong.

Has anyone else run into this?

Thanks in advance!
Should follow install instruction here, https://brew.sh/

I don't follow articles that are not the original dev because code changes all the time and those articles are outdated.

Moreover, for today's macOS on Apple Silicon, they have built in native `python3` calling instead of `python`, please be aware some older installations are meant for Intel base mac that call by `python` instead of `python3`. Which breaks the installation.
 
  • Like
Reactions: PsychoCenobite
Should follow install instruction here, https://brew.sh/

I don't follow articles that are not the original dev because code changes all the time and those articles are outdated.

Moreover, for today's macOS on Apple Silicon, they have built in native `python3` calling instead of `python`, please be aware some older installations are meant for Intel base mac that call by `python` instead of `python3`. Which breaks the installation.

As a followup to that, sometimes you will see instructions to type "pip" into Terminal for certain apps. With Python3 on Apple Silicon, you type "pip3" instead.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.