Brew install php55-intl fails, Cant Install Composer
I am trying to install npm install && grunt, however it tells me I need composer. I'm trying to install composer but depends on php55.
I've tried brew to install php55, php55-intl, php56, php56-intl, etc.
I read the instructions from here: https://getcomposer.org/doc/00-intro.md
It states that for Mac, I should just use the brew commands:
brew update brew tap homebrew / homebrew-php brew click homebrew / dupes brew click homebrew / brew options install php55-intl #fails here brew install homebrew / php / composer
I am getting the following error:
brew install php55-intl ==> Install dependencies for php55-intl: php55, icu4c ==> Install php55-intl dependency: php55 ==> Download 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 - check for png_write_image in -lpng ... yes If configure doesn't work try --with-xpm-dir = check for fabsf ... yes check for floorf ... yes configure: error: GD build test failed. Please check config.log for details.
READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting If you report this please do so (not 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. rb308: 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
'
Does anyone know of another job? I have tried curl commands but they never run and I cannot run the exe on my mac.
Thank!
source to share
Decision:
- Upgrading to the latest version of Xcode
- Make sure you reinstall XCode CLT:
xcode-select --install
- Update your formulas:
brew update
- Remove zlib:
brew rm zlib
- Install / reinstall php55:
brew install php55
(since zlib is dependent it will be reinstalled)
Followed by brew install composer
Found here: https://github.com/Homebrew/homebrew-php/issues/610
I needed to update Xcode and then everything started up.
source to share