I recently updated my Mac's copy of OSX from 10.6 to 10.10. Everything seems to be working fine except for brew.
my_mac:local my_user$ brew install wget
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- global (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Library/brew.rb:15:in `<main>'
Since brew is based on Ruby I believe there's some problem with the system's install of Ruby, but I'm not sure how to approach it. I've tried to re-install the most recent version of Ruby and then Homebrew, but when Homebrew gets to
brew cleanup
It throws the same Ruby error.
Thanks!