我正在尝试安装npm install && grunt,但是它告诉我需要composer。我正在尝试安装composer,但这取决于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 #在此处失败 brew install homebrew/php/composer 我得到以下错误:
安装php55-intl:
brew install php55-intl
安装php55-intl的依赖:php55, icu4c
下载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 -- 检查png_write_image是否在-lpng中... 是 如果configure失败,请尝试--with-xpm-dir= 检查fabsf是否存在... 是 检查floorf是否存在... 是 configure: error: GD build test failed. Please check the config.log for details.
阅读此内容: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
我已经尝试了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 #在此处失败 brew install homebrew/php/composer 我得到以下错误:
安装php55-intl:
brew install php55-intl
安装php55-intl的依赖:php55, icu4c
下载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 -- 检查png_write_image是否在-lpng中... 是 如果configure失败,请尝试--with-xpm-dir= 检查fabsf是否存在... 是 检查floorf是否存在... 是 configure: error: GD build test failed. Please check the config.log for details.
阅读此内容: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': 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/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 /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文件。
谢谢!