-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
brew doctor complains about paths in .bashrc #8791
Comments
We don't alter the user's |
The Homebrew installer (and more generally, Homebrew itself) will not touch files outside of its installation. It is up to you to make the necessary adjustments to your configuration files. In this case, |
now my .bashrc reads: |
That PATH statement includes only /usr/local/bin; it would be good to instead add |
ok, thanks. both .bashrc and .bash_profile now read i'm getting errors like |
Sorry, should have been clearer. Remove the first
Make sure you don't have another (The reason it couldn't find |
ah ok thanks for explaining this. echo $PATH gives me chown and friends are now working again. |
The error can really be cleaned up so that it is more user friendly.... |
mxa's solution worked great. The doctor's message should be clearer that .bashrc isn't necessarily the problem (it even throws up this error in zsh for me) |
Is it a good idea to move /usr/local/bin up in /etc/paths? Thanks |
No, I'd recommend doing it in your bashrc (or equivalent). |
And if it's Apache running Django/Python? |
@thie1210 You should just be able to set it in the |
==> /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. This is an issue if you eg. brew installed Python.
Consider editing your .bashrc to put:
/usr/local/bin
ahead of /usr/bin in your $PATH.
that's on a fresh homebrew installation. why doesn't the installer take care of that?
now my .bashrc file looks like this:
PATH=${PATH}:/usr/local/bin
PATH=${PATH}:~/bin
but the error in brew doctor still persists.
The text was updated successfully, but these errors were encountered: