title: Homebrew updated zlib and broke everything
body: <p>So a <code>brew update</code> updated zlib from 1.2.7 to 1.2.8. Yay.</p>
  
  <p>Later I noticed there was an issue running <code>bundle</code>. I was getting a <code>LoadError</code> for zlib.</p>
  
  <pre><code>Error loading RubyGems plugin "/Users/michael/.rvm/gems/ruby-2.0.0-p0@global/gems/rubygems-bundler-1.1.1/lib/rubygems_plugin.rb": dlopen(/Users/michael/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/x86_64-darwin12.3.0/zlib.bundle, 9): Library not loaded: /usr/local/opt/zlib/lib/libz.so.1.2.7
    Referenced from: /Users/michael/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/x86_64-darwin12.3.0/zlib.bundle
    Reason: image not found - /Users/michael/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/x86_64-darwin12.3.0/zlib.bundle (LoadError)
  </code></pre>
  
  <p><code>brew doctor</code> says:</p>
  
  <pre><code>dyld: Library not loaded: /usr/local/opt/zlib/lib/libz.so.1.2.7
    Referenced from: /usr/local/bin/php
    Reason: image not found
  </code></pre>
  
  <p>Tried <code>brew tap homebrew/dupes</code> as per <a href="https://stackoverflow.com/questions/12323252/brew-doctor-dyld-library-not-loaded-error-no-available-formula-for-zlib">this</a>, got <code>Error: Already tapped!</code>, of course</p>
  
  <p>Next tried <code>rvm reinstall 2.0.0</code>. Now <code>bundle</code> works but <code>rails s</code> still does not.</p>
  
  <pre><code>/Users/michael/.rvm/gems/ruby-2.0.0-p0@rails3/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': dlopen(/Users/michael/.rvm/gems/ruby-2.0.0-p0@rails3/gems/nokogiri-1.5.9/lib/nokogiri/nokogiri.bundle, 9): Library not loaded: /usr/local/opt/zlib/lib/libz.so.1.2.7 (LoadError)
    Referenced from: /usr/local/opt/libxml2/lib/libxml2.2.dylib
    Reason: image not found - /Users/michael/.rvm/gems/ruby-2.0.0-p0@rails3/gems/nokogiri-1.5.9/lib/nokogiri/nokogiri.bundle
  </code></pre>
  
  <p>Anyone know how to fix this?</p>
  
  <h1>Update</h1>
  
  <p>Managed to get my everything working, for now, with a <code>cp /usr/local/opt/zlib/lib/libz.so.1.2.8 /usr/local/opt/zlib/lib/libz.so.1.2.7</code>. The jankiest of fixes. If anyone has a real solution to this I'd be much obliged.</p>