[英]brew install php55-intl fails, Cant Install Composer
I'm trying to install npm install && grunt, however it tells me that I need composer. 我正在尝试安装npm install && grunt,但它告诉我我需要作曲家。 I'm trying to install composer but that's dependent on php55.
我正在尝试安装作曲家,但这取决于php55。
I've tried brew install php55, php55-intl, php56, php56-intl, etc. 我试过brew install php55,php55-intl,php56,php56-intl等。
I am reading the instructions from here: https://getcomposer.org/doc/00-intro.md 我正在阅读这里的说明: https : //getcomposer.org/doc/00-intro.md
It states that for a Mac I should simply use brew commands: 它声明对于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更新brew自来水homebrew / homebrew-php brew自制软件/ dupes brew自制软件/版本brew安装php55-intl #fails这里brew install homebrew / php / composer
I am getting the following error: 我收到以下错误:
brew install php55-intl ==> Installing dependencies for php55-intl: php55, icu4c ==> Installing php55-intl dependency: php55 ==> Downloading http://www.php.net/get/php-5.5.15.tar.bz2/from/this/mirror 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.
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构建测试失败。 Please check the config.log for details.
请查看config.log以获取详细信息。
READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting If reporting this issue please do so at (not Homebrew/homebrew):
请阅读: https : //github.com/Homebrew/homebrew/wiki/troubleshooting如果报告此问题,请在(不是Homebrew / homebrew)报告:
https://github.com/homebrew/homebrew-php/issueshttps://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: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:inrequire' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/https.rb:21:in
' from /System/Library/Fr/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 / rubygems / core_ext / kernel_require.rb:55:inrequire' 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/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 /usr/local/Library/Homebrew/utils.rb:308:inopen' from /usr/local/Library/Homebrew/utils.rb:350:in
issues_matching' from /usr/local/Library/Homebrew/utils.rb:378:inissues_for_formula' from /usr/local/Library/Homebrew/exceptions.rb:171:in
fetch_issues' from /usr/local/Library/Homebrew/exceptions.rb:167:inissues' from /usr/local/Library/Homebrew/exceptions.rb:207:in
dump' from /usr/local/Library/brew.rb:158:inrescue in <main>' from /usr/local/Library/brew.rb:66:in
'ameworks / 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
要求'from /usr/local/Library/Homebrew/utils.rb:308:inrequire' 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:inissues_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
Does anyone know another work around? 有谁知道另一种工作? I've tried curl commands but they never run, and I can't run the exe on my mac.
我已经尝试过curl命令,但它们从未运行过,我无法在我的mac上运行exe。
Thanks! 谢谢!
Solution: 解:
xcode-select --install
xcode-select --install
brew update
brew update
brew rm zlib
brew rm zlib
brew install php55
(as zlib is a dependency, it will be reinstalled) brew install php55
(因为zlib是一个依赖项,它将被重新安装) Followed by brew install composer
其次是
brew install composer
Found here: https://github.com/Homebrew/homebrew-php/issues/610 在这里找到: https : //github.com/Homebrew/homebrew-php/issues/610
I needed to update my Xcode, and then everything ran. 我需要更新我的Xcode,然后一切都运行了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.