So a brew update
updated zlib from 1.2.7 to 1.2.8. Yay.
Later I noticed there was an issue running bundle
. I was getting a LoadError
for zlib.
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)
brew doctor
says:
dyld: Library not loaded: /usr/local/opt/zlib/lib/libz.so.1.2.7
Referenced from: /usr/local/bin/php
Reason: image not found
Tried brew tap homebrew/dupes
as per this, got Error: Already tapped!
, of course
Next tried rvm reinstall 2.0.0
. Now bundle
works but rails s
still does not.
/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
Anyone know how to fix this?
Update
Managed to get my everything working, for now, with a cp /usr/local/opt/zlib/lib/libz.so.1.2.8 /usr/local/opt/zlib/lib/libz.so.1.2.7
. The jankiest of fixes. If anyone has a real solution to this I'd be much obliged.