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

nobodyhome

macrumors regular
Original poster
Jul 2, 2008
126
3
I really don't want to break anything so I ask for some help, please. I wanted to try to get the Game Porting Toolkit running, but apparently there's an issue with the PATH for my existing homebrew on my M1 Mac. I literally am still learning and have no idea how to even approach this and, like I said, I really don't want to break anything.

When I enter
Code:
which brew
it shows
Code:
/opt/homebrew/bin/brew
and all the Read Me file says is
If this command does not print /usr/local/bin/brew, you must either modify your PATH to put /usr/local/bin first, or fully specify the path to brew in the subsequent commands.

So my questions is how set my homebrew to the right PATH/directory/whatever or how do I edit the rest of the commands in the Read Me so I can install the toolkit properly?

Again, I'm still learning so please forgive me if I don't understand right away.

Thank you for any help.
 

Slartibart

macrumors 68040
Aug 19, 2020
3,142
2,817
You can edit the $PATH variable. If you want the changes to permanent on your system you have to edit the hidden zsh prefs via the terminal using e.g. nano ~/.zshrc (or nano ~/.zsh_profile - you can check on your system what is available). if you have changed the shell Apple’s terminal uses to e.g. bash it’s ~/.bashrc or ~/.bash_profile.
After editing and saving your changes to the zsh or bash profile using nano, execute source ~/.zshrc (or the other mentioned prefs depending on your system) in the same terminal window to let zsh use the changed prefs.
 
  • Like
Reactions: gilby101

demyers

macrumors newbie
May 3, 2015
19
12
Apex, NC
Brew used to be installed in /usr/local/bin but /opt/homebrew/bin is correct for current installations, so it looks like you have Homebrew installed correctly. There's no need to mess with your PATH.

Apparently the documentation for the Toolkit is out of date.
 
  • Like
Reactions: Canaria
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.