因此一个brew update
更新了zlib从1.2.7到1.2.8。好极了。自制软件更新了zlib并打破了一切
后来我发现有一个问题运行bundle
。我得到了zlib的LoadError
。
Error loading RubyGems plugin "/Users/michael/.rvm/gems/[email protected]/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
按this,得到了Error: Already tapped!
,当然
下一页试图rvm reinstall 2.0.0
。现在bundle
工程,但rails s
仍然没有。
/Users/michael/.rvm/gems/[email protected]/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': dlopen(/Users/michael/.rvm/gems/[email protected]/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/[email protected]/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
。最好的修复。如果任何人有一个真正的解决方案,我会非常感激。
这是一个完全肮脏的修复,但它的工程! – 2013-05-21 10:22:09