所以一个brew更新更新zlib从1.2.7到1.2.8.好极了.
后来我注意到有一个运行捆绑的问题.我正在获得一个LoadError for 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)
酿造医生说:
dyld: Library not loaded: /usr/local/opt/zlib/lib/libz.so.1.2.7 Referenced from: /usr/local/bin/PHP Reason: image not found
根据this尝试酿造自制啤酒/复制件,当然有错误:已经轻按!
接下来尝试rvm重新安装2.0.0.现在捆绑的作品,但rails仍然没有.
/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来管理我的所有工作.最麻烦的修复.如果任何人有一个真正的解决方案,我将非常有责任.
解决方法
是的,我建议如下:
> brew删除PHP53(或PHP54)你甚至可以更积极如果
需要,只是为了确保以前没有安装PHP
你的Mac
>(可选)做一个brew清理.我没有这样做,事情一直存在
固定.
> brew install PHP53(或PHP54)
然后,PHP -v会给你一个很好的:
PHP 5.3.23 (cli) (built: May 6 2013 16:18:42) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.3.0,Copyright (c) 1998-2013 Zend Technologies with Xdebug v2.2.1,Copyright (c) 2002-2012,by Derick Rethans
没有更多的抱怨丢失的lib或其他任何东西.