php扩展intl安装不成功,brew install php55-intl失败,无法安装Composer

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

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

它声明对于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:inrequire’ from

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:390:in

' 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

' from

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire’ 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:inrequire’ from /usr/local/Library/Homebrew/utils.rb:308:in open'

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’

from /usr/local/Library/Homebrew/exceptions.rb:167:in issues' from

/usr/local/Library/Homebrew/exceptions.rb:207:indump’ from

/usr/local/Library/brew.rb:158:in rescue in ' 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

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

标签:php,npm,homebrew,macos

来源: https://codeday.me/bug/20190715/1467005.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值