所以brew update
从 1.2.7 更新到 1.2.8 的 zlib。耶。
后来我注意到运行有问题bundle
。我得到了一个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
说:
dyld: Library not loaded: /usr/local/opt/zlib/lib/libz.so.1.2.7
Referenced from: /usr/local/bin/php
Reason: image not found
brew tap homebrew/dupes
按照这个试过了Error: Already tapped!
,当然得到了
接下来尝试了rvm reinstall 2.0.0
。现在bundle
有效,但rails s
仍然无效。
/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
有人知道怎么修这个东西吗?
更新
设法让我的一切工作,现在,使用cp /usr/local/opt/zlib/lib/libz.so.1.2.8 /usr/local/opt/zlib/lib/libz.so.1.2.7
. 最笨拙的修复。如果有人对此有真正的解决方案,我将不胜感激。