pythonnewbie
pythonnewbie

Reputation: 17

Installing homebrew and getting the PATH correct (permanently)

I have installed Homebrew on my MacOS and I have been going through some online tutorials, but it's not quite working.

A frequent error message I get is -bash: brew: command not found.

I suspect this is because my PATH is not correct. I have tried export PATH=/usr/local/bin:$PATH and it seems to work temporarily, but after a while, it seems to go wrong. How do I set my PATH so that it is correct, and stays fixed?

Upvotes: 0

Views: 2365

Answers (1)

seralouk
seralouk

Reputation: 33147

Can you type this on the terminal?

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

The re-installation should fix the PATH.

which brew
/usr/local/bin/brew

Upvotes: 1

Related Questions