Skip to content

Instantly share code, notes, and snippets.

@speciale
Created March 8, 2013 22:52
Show Gist options
  • Save speciale/5120634 to your computer and use it in GitHub Desktop.
Save speciale/5120634 to your computer and use it in GitHub Desktop.
imagick GD build test failed
$ brew install -V /usr/local/Library/Taps/josegonzalez-php/Formula/php54-imagick.rb
==> Installing php54-imagick dependency: php54
==> Downloading http://www.php.net/get/php-5.4.11.tar.bz2/from/this/mirror
Already downloaded: /Library/Caches/Homebrew/php54-5.4.11
==> Downloading patches
######################################################################## 100,0%
==> Patching
patching file Makefile.global
patch unexpectedly ends in middle of line
==> ./configure --prefix=/usr/local/Cellar/php54/5.4.11 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/5
If configure fails try --with-vpx-dir=<DIR>
checking for png_write_image in -lpng... yes
If configure fails try --with-xpm-dir=<DIR>
checking for FT_New_Face in -lfreetype... yes
configure: error: GD build test failed. Please check the config.log for details.
Error: uncaught throw `Failed executing: ./configure --prefix=/usr/local/Cellar/php54/5.4.11 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/5.4 --with-config-file-path=/usr/local/etc/php/5.4 --with-config-file-scan-dir=/usr/local/etc/php/5.4/conf.d --with-iconv-dir=/usr --enable-dba --with-ndbm=/usr --enable-exif --enable-soap --enable-wddx --enable-ftp --enable-sockets --enable-zip --enable-pcntl --enable-shmop --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-mbstring --enable-mbregex --enable-bcmath --enable-calendar --with-zlib=/usr/local/opt/zlib --with-ldap --with-ldap-sasl=/usr --with-xmlrpc --with-kerberos=/usr --with-xsl=/usr --with-gd --enable-gd-native-ttf --with-freetype-dir=/usr/local/opt/freetype --with-jpeg-dir=/usr/local/opt/jpeg --with-png-dir=/usr/local/opt/libpng --with-gettext=/usr/local/opt/gettext --with-snmp=/usr --with-libedit --mandir=/usr/local/Cellar/php54/5.4.11/share/man --with-mhash --with-curl --with-bz2=/usr --disable-debug --with-openssl=/usr --with-apxs2=/
Please report this bug:
https://github.com/mxcl/homebrew/wiki/troubleshooting
/usr/local/Library/Formula/abstract-php.rb:127:in `throw'
/usr/local/Library/Formula/abstract-php.rb:127:in `install'
/usr/local/Library/Homebrew/build.rb:144:in `install'
/usr/local/Library/Homebrew/formula.rb:231:in `brew'
/usr/local/Library/Homebrew/formula.rb:620:in `stage'
/usr/local/Library/Homebrew/extend/fileutils.rb:21:in `mktemp'
/usr/local/Library/Homebrew/formula.rb:616:in `stage'
/usr/local/Library/Homebrew/formula.rb:226:in `brew'
/usr/local/Library/Homebrew/build.rb:123:in `install'
/usr/local/Library/Homebrew/build.rb:43:in `main'
/usr/local/Library/Homebrew/build.rb:12
/usr/local/Library/Formula/php54.rb:27
@speciale
Copy link
Author

speciale commented Mar 8, 2013

OS X Version: ex. 10.7.8
Homebrew Version: Homebrew 0.9.4
PHP Version in use: PHP Version 5.4.4 by and Liip , Release 1 http://php-osx.liip.ch/
XCode: Version 4.6 (4H127)
gcc -v:
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11148/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11148/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)

php -v
PHP 5.4.4 (cli) (built: Jun 19 2012 08:53:22) 

Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.2.0rc2, Copyright (c) 2002-2012, by Derick Rethans

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment