微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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,然后一切都运行了.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐