I installed Homebrew today, and as the application suggested, I ran
brew doctor
I got this warning:
Warning: Some directories in your path end in a slash.
Directories in your path should not end in a slash. This can break other
doctor checks. The following directories should be edited:
/Users/MyUsername/
After googling this, I opened
vi ~/.bash_profile
from terminal and manually removed the "/" after my username. So now my .bash_profile looks like this:
export PATH=$PATH:/Users/MyUsername
export PATH=/usr/local/git/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Users/MyUsername
Then I retyped the prompt and got the same warning. How do I fix this?
Did you try restarting Terminal? Or at least opening a new session (tab)?
And if you're using zsh, you'll need to edit the ~/.zshrc file and remove the trailing slash on the end of "/usr/local/bin" as well.
After editing your profile, you have to tell the OS. From the terminal, execute the following command: source ~/.bash_profile
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With