0

Context

  • I'm getting this error, when running the Brew Doctor command in the terminal after installing homebrew(https://github.com/mxcl/homebrew):

    enter image description here

  • To fix this issue I'm following the instructions here : How to modify PATH for Homebrew?

  • When I type in sudo vi /etc/paths to the terminal (I'm on the root), which by the way is part of the answer given in the StackOverflow question I reference above, I get this:

enter image description here

  • When I quit the terminal and type in Brew Docotor I still get the same warning.

Questions

  • Main Question: What am I doing wrong?
  • Ancillary Question: Why in the terminal do I not have the ability to type anything after running the command?
  • Ancillary Question: Why is there all this white space and the ~ characters after running the command?
Community
  • 1
  • 1
drc
  • 1,905
  • 4
  • 22
  • 28

1 Answers1

0

Running this command:

echo 'export PATH="/usr/local/bin:/usr/local/sbin:~/bin:$PATH"' >> ~/.bash_profile

fixed the issue for me. I found it at this website: http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/ via How to modify PATH for Homebrew?

Community
  • 1
  • 1
drc
  • 1,905
  • 4
  • 22
  • 28