Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

PATH in my .bashrc

Hello ,I installed Homebrew today and with command line "brew doctor" i got this :

brew doctor
/usr/bin is in your PATH before Homebrew's bin. This means that system-
provided programs will be used before Homebrew-provided ones. This is an
issue if you install, for instance, Python.

Consider editing your .bashrc to put:
/usr/local/bin
ahead of /usr/bin in your $PATH.

Some brews install binaries to sbin instead of bin, but Homebrew's
sbin was not found in your path.

Consider editing your .bashrc to add:
/usr/local/sbin
to $PATH.

What excatly should i write in .bashrc to fix this ?

iMac, Mac OS X (10.6.6), none

Posted on Feb 12, 2011 11:43 PM

Reply
4 replies

Feb 13, 2011 2:30 AM in response to ilounge

There are a number of options.

You might consider the option in this link -> http://www.softec.lu/site/DevelopersCorner/MasteringThePathHelper .

You also edit /etc/profile and nuke the path_helper utility then create a traditional /etc/profile.

Or you could use sledgehammer approach and set your PATH in your .bash_profile like this ->

export PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin"

PATH in my .bashrc

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.