I was trying to install homebrew, which wasn't working. It told me to do echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile
. However this wasn't having any affect, and I thought maybe it was because of echo (I don't know any Bash), so I removed the Echo, ran brew doctor
and it spat this out, which concerned me:
/usr/local/bin/brew: line 2: dirname: command not found
/usr/local/bin/brew: line 5: basename: command not found
/usr/local/bin/brew: line 8: readlink: command not found
/usr/local/bin/brew: line 16: cd: /Users/howard/../Library: No such file or directory
/usr/local/bin/brew: line 23: tr: command not found
/usr/local/bin/brew: line 23: uname: command not found
/usr/local/bin/brew: line 28: exec: ruby: not found
Is there any way to undo what I just did? Also, can someone please explain to me what I just did? I am never going to make the stupid mistake of copying and pasting commands I don't understand. I feel like a total moron right now.
I worry that I may have overriden /usr/bin/ with stuff? I can't run most of the basic commands like man
, ls
, and a few others. cd
still works though. Is there any hope for me, or do I need to reinstall my OS?
/usr/bin/tail ~/.bash_profile
return?export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/bin:$PATH
/bin/ls
and/usr/bin/man
should still exist and work...