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

我正在尝试安装npm install&&咕噜声,但它告诉我,我需要作曲家.我正在尝试安装作曲家,但这取决于PHP55.

我试过brew install PHP55,PHP55-intl,PHP56,PHP56-intl等.

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

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

brew update brew tap
homebrew/homebrew-PHP
brew tap homebrew/dupes
brew tap homebrew/versions
brew install PHP55-intl #fails here
brew install homebrew/PHP/composer

我收到以下错误

brew install PHP55-intl
==> Installing dependencies for PHP55-intl: PHP55, icu4c
==> Installing PHP55-intl dependency: PHP55
==> Downloading 07001 Already
downloaded: /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 — checking for png_write_image in -lpng… yes If configure fails try
–with-xpm-dir= checking for fabsf… yes checking for floorf… yes configure: error: GD build test Failed. Please check the
config.log for details.

READ THIS: 07002
If reporting this issue please do so at (not Homebrew/homebrew):
07003

/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:in
<class:HTTP>' from
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:384:in
‘ 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
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
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/https.rb:21:in
‘ 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/rubygems/core_ext/kernel_require.rb:55:in
require’ from /usr/local/Library/Homebrew/utils.rb:308:in open'
from /usr/local/Library/Homebrew/utils.rb:350:in
issues_matching’
from /usr/local/Library/Homebrew/utils.rb:378:in issues_for_formula'
from /usr/local/Library/Homebrew/exceptions.rb:171:in
fetch_issues’
from /usr/local/Library/Homebrew/exceptions.rb:167:in issues' from
/usr/local/Library/Homebrew/exceptions.rb:207:in
dump’ from
/usr/local/Library/brew.rb:158:in rescue in <main>' from
/usr/local/Library/brew.rb:66:in

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

谢谢!

解决方法:

解:

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

其次是brew install composer

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

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

相关文章

最近做自动化测试时,深感自己对前端涉猎太少,加上对这块比...
homebrew本身就是一个git仓库。使用homebrew安装软件包时,会...
一、Homebrew安装、卸载等命令Homebrew的安装和卸载都非常简...
在mac系统中,使用homebrew可以很方便的管理包。按照官网的说...
我按照说明从这里使用brew安装mysqlhttps://gist.github.com...
我在macOS10.12.4上安装了nginx1.10.3和php5.5.38作为开发服...