Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I am new to mac and was following a video and typed export PATH="$HOME/opt/git/bin:$PATH" I believe this messed up my path and I am not able to install MySQL now. When I tried to install homebrew I get -bash: brew: command not found. I tried restarting the terminal and I am still getting this error.

share|improve this question

closed as not a real question by bmike May 7 '13 at 16:13

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
How did you try to install Homebrew? Their website has instructions for setting it up. –  jtbandes May 10 '12 at 9:03
    
Don't post the same question on multiple sites: superuser.com/questions/422761/… –  Matteo May 10 '12 at 9:13
    
What does echo $PATH show? –  Mark May 10 '12 at 9:54
    
Let's close this until some more detail can be provided. It's not clear if we need a tutorial on BASH or a pointer to homebrew troubleshooting or something else entirely. –  bmike May 7 '13 at 16:13

3 Answers 3

Unless you installed brew into /Users/<your_username>/opt/git/bin, adding that to your PATH won't help you find it.

Did you instead install it at /opt/git/bin?

share|improve this answer

Restarting the terminal should have solved the problem since you didn't append what you have typed to a bash start-up file.

Also, even if what you have typed was directed to a bash start-up file it wouldn't affect where bash would find brew since you're prepending to the original path and not overwriting it.

Your problem lays in something else you've done that has changed the settings for your path in a bash start-up file or have deleted/altered the location of the executable.

Why aren't you able to install MySQL? What errors do you get? What form of package are you installing? Is it from the MySQL official site?

Recommended installation of brew makes it reside in /usr/local/bin/. Do you have that in your echo $PATH output? Also, normal brew installation is a simple command that doesn't need brew to start with. So do you mean you get -bash: brew: command not found after attempting the installation of brew?

share|improve this answer

brew is only for macs. oh!. i see you are using a mac. ok thn, open your terminal window. oh, its open. ok, then. i can help you no more. keep up the good work.

share|improve this answer
1  
Please be nice. We encourage people to ask questions so that they can learn. When answering, try to improve upon the silence. Your post was helpful since it caused me to realize that the question should be closed due to needing more detail - so I'm thankful for the assistance in locating a question that needs an edit. Feel free to flag these in the future explaining how a question isn't yet ready to get a good answer. –  bmike May 7 '13 at 16:11
    
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. –  bassplayer7 May 7 '13 at 18:00

Not the answer you're looking for? Browse other questions tagged or ask your own question.