首页 文章

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

提问于
浏览
3

我正在尝试安装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 install 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 ... yes configure:错误: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':类不是来自/ System / Library的模块(TypeError) /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:来自/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0的<class:HTTP>' /net/http.rb:384:in来自/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:25:in <top(必填) )>来自/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 /版本/ 2.0 / usr / lib中/擦y / 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/https.rb :21:来自/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 / rubygems / core_ext / kernel_require.rb:55:in require'from /usr/local/Library/Homebrew/utils.rb:308:in打开'from /usr/local/Library/Homebrew/utils.rb:350:inissues_matching'from /usr/local/Library/Homebrew/utils.rb:378:in issues_for_formula'from / usr / local / Library / Homebrew / exceptions .rb:171:infetch_issues'来自/usr/local/Library/Homebrew/exceptions.rb:167:来自/ usr / local /来自/usr/local/Library/Homebrew/exceptions.rb:207:indump'的问题Library / brew.rb:158:来自/usr/local/Library/brew.rb:66:in'中的<main>'救援

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

谢谢!

1 回答

  • 12

    解:

    • 升级到最新版本的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,然后一切都运行了 .

相关问题