我正在尝试安装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