brew安装php70出现configure: error: Cannot find libz 错误解决方法
根据《全新安装Mac OS Sierra (10.12)并使用HomeBrew安装ZSH + MNMP (Mac + Nginx + Mysql + Php) 开发环境》教程在mac下用brew安装php70出错。
brewinstallphp70--with-debug--with-gmp--with-homebrew-curl--with-homebrew-libressl--with-homebrew-libxml2--with-homebrew-libxslt--with-imap--with-libmysql--with-mysql
出错信息:
configure:error:CannotfindlibzIfreportingthisissuepleasedosoat(notHomebrew/breworHomebrew/core):https://github.com/josegonzalez/homebrew-php/issues/usr/local/Homebrew/Library/Homebrew/utils/github.rb:226:in`raise_api_error':ValidationFailed(GitHub::Error)from/usr/local/Homebrew/Library/Homebrew/utils/github.rb:184:in`open'from/usr/local/Homebrew/Library/Homebrew/utils/github.rb:233:in`issues_matching'from/usr/local/Homebrew/Library/Homebrew/utils/github.rb:266:in`issues_for_formula'from/usr/local/Homebrew/Library/Homebrew/exceptions.rb:325:in`fetch_issues'from/usr/local/Homebrew/Library/Homebrew/exceptions.rb:321:in`issues'from/usr/local/Homebrew/Library/Homebrew/exceptions.rb:383:in`dump'from/usr/local/Homebrew/Library/Homebrew/brew.rb:133:in`rescuein<main>'from/usr/local/Homebrew/Library/Homebrew/brew.rb:31:in`<main>'
解决方法:
在命令行执行$xcode-select--install再次安装$brewinstallphp70--with-debug--with-gmp--with-homebrew-curl--with-homebrew-libressl--with-homebrew-libxml2--with-homebrew-libxslt--with-imap--with-libmysql--with-mysql成功解决。
参考链接:
http://stackoverflow.com/questions/39442552/5-boxen-errors-when-running-boxen-our-boxen
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。