ruby on rails - Homebrew updated zlib and broke everything -


so brew update updated zlib 1.2.7 1.2.8. yay.

later noticed there issue running bundle. getting loaderror 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 per this, got error: tapped!, of course

next tried rvm reinstall 2.0.0. bundle works rails s still 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 fix this?

update

managed working, now, cp /usr/local/opt/zlib/lib/libz.so.1.2.8 /usr/local/opt/zlib/lib/libz.so.1.2.7. jankiest of fixes. if has real solution i'd obliged.

yep, propose following:

  1. brew remove php53 (or php54) can more aggressive if needed, make sure no previous installation of php on mac.
  2. (optional) brew cleanup. did not , things have been fixed.
  3. brew install php53 (or php54)

then, php -v give nice:

php 5.3.23 (cli) (built: may  6 2013 16:18:42) copyright (c) 1997-2013 php group zend engine v2.3.0, copyright (c) 1998-2013 zend technologies     xdebug v2.2.1, copyright (c) 2002-2012, derick rethans 

no more complaints missing lib or else.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -