繁体   English   中英

brew install php55-intl失败,无法安装Composer

[英]brew install php55-intl fails, Cant Install Composer

我正在尝试安装npm install && grunt,但它告诉我我需要作曲家。 我正在尝试安装作曲家,但这取决于php55。

我试过brew install php55,php55-intl,php56,php56-intl等。

我正在阅读这里的说明: https//getcomposer.org/doc/00-intro.md

它声明对于Mac我应该只使用brew命令:

brew更新brew自来水homebrew / homebrew-php brew自制软件/ dupes brew自制软件/版本brew安装php55-intl #fails这里brew install homebrew / php / composer

我收到以下错误:

brew安装php55-intl ==>安装php55-intl的依赖项:php55,icu4c ==>安装php55-intl依赖项:php55 ==>下载http://www.php.net/get/php-5.5.15。 tar.bz2 / from / this / mirror已下载:/ Library/Caches/Homebrew/php55-5.5.15 ==> ./configure --prefix = / usr / local / Cellar / php55 / 5.5.15 --localstatedir = / usr / local / var --sysconfdir = / usr / local / etc / php / 5.5 --with-config-file-path = / usr / local / etc / php / 5.5 --with-config-file-scan- dir = / usr / local / etc / php / 5.5 / conf.d - 在-lpng中检查png_write_image ...是如果配置失败,请尝试--with-xpm-dir =检查fabsf ...是检查floorf ...是配置:错误:GD构建测试失败。 请查看config.log以获取详细信息。

请阅读: https//github.com/Homebrew/homebrew/wiki/troubleshooting如果报告此问题,请在(不是Homebrew / homebrew)报告:
https://github.com/homebrew/homebrew-php/issues

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require': Class is not a module (TypeError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require'from /System/Library/Frameworks/Ruby.framework/Versions/ 2.0 / usr / lib / ruby​​ / 2.0.0 / net / http.rb:390: <class:HTTP>' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:384:in in'from from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:25:in <top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in / System / Library / Frameworks / Ruby.framework / Versions / 2.0 / usr / lib / ruby​​ / 2.0.0 / ruby​​gems / core_ext / kernel_require.rb:55:in require' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/https.rb:21:in '来自/ System / Library / Fr ameworks / Ruby.framework / Versions / 2.0 / usr / lib / ruby​​ / 2.0.0 / ruby​​gems / core_ext / kernel_require.rb:55:in require' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in要求'from /usr/local/Library/Homebrew/utils.rb:308:in require' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in open' from /usr/local/Library/Homebrew/utils.rb:350:in issues_matching'来自/usr/local/Library/Homebrew/utils.rb:378:in issues_for_formula' from /usr/local/Library/Homebrew/exceptions.rb:171:in '来自/ usr / local / Library / Homebrew / exceptions.rb:167: issues' from /usr/local/Library/Homebrew/exceptions.rb:207:in dump'的问题来自/usr/local/Library/brew.rb:158:在rescue in <main>' from /usr/local/Library/brew.rb:66:in ' rescue in <main>' from /usr/local/Library/brew.rb:66:in

有谁知道另一种工作? 我已经尝试过curl命令,但它们从未运行过,我无法在我的mac上运行exe。

谢谢!

解:

  • 升级到最新版本的XCode
  • 确保重新安装XCode CLT: xcode-select --install
  • 更新您的公式: brew update
  • 删除zlib: brew rm zlib
  • 安装/重新安装php55: brew install php55 (因为zlib是一个依赖项,它将被重新安装)

其次是brew install composer

在这里找到: https//github.com/Homebrew/homebrew-php/issues/610

我需要更新我的Xcode,然后一切都运行了。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM