I'm running Mac OS X 10.7.5 on which I installed Homebrew some time ago. When trying to go into the brew directory with
cd `brew --prefix`
I'm getting the following error:
/usr/local/bin/brew:10:in `require': no such file to load -- global (LoadError)
What is the cause and how can I fix it?