title: Completely broken Homebrew install, getting weird error upon reinstall
body: <p>I'm trying to reinstall Homebrew and the installation is successfull up to when I try typing 'brew doctor' to which I receive this message:</p>
  
  <blockquote>
    <p>/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
    /usr/local/bin/brew: line 26: /usr/local/Library/brew.rb: Undefined error: 0</p>
  </blockquote>
  
  <p>I definitely think this may be something wrong with one of my .profile files, but I can't seem to figure out what to do. I've manually compiled Ruby because I accidentally screwed that installation up, and I've installed RVM.</p>
  
  <p>In RVM, running 'rvm install ruby' gives me the same error as above, along with this one below:</p>
  
  <blockquote>
    <p>ERROR: '/bin' is not writable - it is required for Homebrew, try 'brew doctor' to fix it!
    Requirements installation failed with status: 1.</p>
  </blockquote>
  
  <p>I've tried to run</p>
  
  <blockquote>
    <p>rm -rf /usr/local/Cellar /usr/local/.git &amp;&amp; brew cleanup</p>
  </blockquote>
  
  <p>to delete Homebrew but I get the same error as listed above.</p>
  
  <p>I've spent a few hours trying to solve this mess but I'm getting no where and just cluttering my system with broken installations. Any advice on how to finally solve this would be greatly appreciated.</p>