因此一個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