Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:
2to3
2to3-2.7
idle
idle2.7
pydoc
pydoc2.7
python
python-config
python2.7
python2.7-config
pythonw
pythonw2.7
smtpd.py
smtpd2.7.py
Consider amending your PATH so that /usr/local/bin
is ahead of /usr/bin in your PATH.

I have no idea how to amend the path. I've explored several files from this stack overflow post (http://stackoverflow.com/questions/8886114/using-brew-with-ruby-1-9-2), but can't find a relevan path to edit. The only file that I do have that exists is my /etc/profile file which currently looks like:

Thank you! My system is now 'raring to brew'
–
threenovationApr 23 '12 at 5:30

2

@threenovation if the answer above is correct, can I suggest you mark it as answer (click the tick next to the answer)
–
Stu WilsonApr 23 '12 at 10:37

I wonder if this should be exported? Child processes should have this new path also. Also: When I set up brew, it did not alert me that /usr/bin came before /usr/local/bin.
–
Steven LuMay 3 '12 at 15:00

@StevenLu, it's already exported by the time you get to .bash_profile. It wouldn't hurt to explicitly export it again, but not necessary.
–
glenn jackmanMay 3 '12 at 15:20

Thanks for this. Worked "Your system is raring to brew."
–
VezuMay 29 '12 at 18:46

My PATH was configured correctly in my .bash_profile, but not in /etc/paths. This worked beautifully.
–
Nick TomlinJul 17 '13 at 17:03

3

Do NOT use this method for setting your path -- there is risk that non-terminal applications will pick up the "brewed" components and fail. Using "sudo" should also be a red flag unless you truly understand what you're doing (especially with a user-level development system like Mac Homebrew). Editing your .bash_profile and restarting terminal should be sufficient.
–
rholmesMay 18 '14 at 21:04