HomeBrew Mac os x 10.8 throwing errors "no such file to load"
homebrew, macos, ruby
Solution
I had the same problem and resolved it by
cd /usr/local
git status
If `git status` shows a long list of things have been deleted then this is likely your problem and was probably caused by a change to your RVM setup.
To fix this, do:
git reset --hard
Now try:
brew update
It might say that you need to remove some files first. Remove each file in that list with the `sudo rm` command. Then do `brew update` again.
Also you might need to do:
sudo chown -R $USER /usr/local
before you can run brew install.
I used github.com/mxcl/homebrew/issues/18600 as a reference.
Problem
Whenever I run the brew command on this Mac os Machine i get the following error ``` > brew doctor /usr/local/Library/Homebrew/macos.rb:251:in `require': no such file to load -- macos/xcode (LoadError) from /usr/local/Library/Homebrew/macos.rb:251 from /usr/local/Library/Homebrew/utils.rb:3:in `require' from /usr/local/Library/Homebrew/utils.rb:3 from /usr/local/Library/Homebrew/global.rb:7:in `require' from /usr/local/Library/Homebrew/global.rb:7 from /usr/local/bin/brew:17:in `require' from /usr/local/bin/brew:17 ``` I have everything the web had to offer. Any help is appreciated.