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:
brew remove php53
(or php54) can more aggressive if needed, make sure no previous installation of php on mac.- (optional)
brew cleanup
. did not , things have been fixed. 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
Post a Comment