我正在尝试安装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
require’ 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/net/http.rb:390:in
<class:HTTP>' from
‘ from
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:384:in
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:25:in
<top (required)>' from
require’ 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:in
require' from
‘ from
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/https.rb:21:in
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require' from
require’ from /usr/local/Library/Homebrew/utils.rb:308:in
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
open'
issues_matching’
from /usr/local/Library/Homebrew/utils.rb:350:in
from /usr/local/Library/Homebrew/utils.rb:378:inissues_for_formula'
fetch_issues’
from /usr/local/Library/Homebrew/exceptions.rb:171:in
from /usr/local/Library/Homebrew/exceptions.rb:167:inissues' from
dump’ from
/usr/local/Library/Homebrew/exceptions.rb:207:in
/usr/local/Library/brew.rb:158:inrescue 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,然后一切都运行了.