Skip to content

Instantly share code, notes, and snippets.

Created November 23, 2012 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save anonymous/4136349 to your computer and use it in GitHub Desktop.
Save anonymous/4136349 to your computer and use it in GitHub Desktop.
brew php54 install failure on 10.7.5
PHP version: homebrew-php stable
XCode Version: 4.5.2
Command Line Tools installed
```
$ php -v
PHP 5.3.15 with Suhosin-Patch (cli) (built: Jul 31 2012 14:49:18)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.1.2, Copyright (c) 2002-2011, by Derick Rethans
$ brew -v
Homebrew 0.9.3
$ gcc -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/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.11~67/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)
$ brew doctor
Your system is raring to brew.
$ brew install php54 --with-mysql --with-imap --with-tidy --with-homebrew-openssl
==> Installing php54 dependency: pkg-config
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/pkg-config-0.27.1.lion.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pkg-config-0.27.1.lion.bottle.tar.gz
/usr/local/Cellar/pkg-config/0.27.1: 9 files, 624K
==> Installing php54 dependency: curl
==> Downloading http://curl.haxx.se/download/curl-7.28.0.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/curl/7.28.0
==> make install
==> Caveats
This formula is keg-only: so it was not symlinked into /usr/local.
Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.
The libcurl provided by Leopard is too old for CouchDB to use.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/curl/lib
CPPFLAGS: -I/usr/local/opt/curl/include
==> Summary
/usr/local/Cellar/curl/7.28.0: 75 files, 1.9M, built in 2.3 minutes
==> Installing php54 dependency: freetype
==> Downloading http://downloads.sf.net/project/freetype/freetype2/2.4.10/freetype-2.4.10.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/freetype/2.4.10
==> make install
==> Caveats
This formula is keg-only: so it was not symlinked into /usr/local.
Mac OS X already provides this software in versions before Mountain Lion.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/freetype/lib
CPPFLAGS: -I/usr/local/opt/freetype/include
==> Summary
/usr/local/Cellar/freetype/2.4.10: 56 files, 2.5M, built in 20 seconds
==> Installing php54 dependency: gettext
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/gettext-0.18.1.1.lion.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gettext-0.18.1.1.lion.bottle.tar.gz
==> Caveats
This formula is keg-only: so it was not symlinked into /usr/local.
OS X provides the BSD gettext library and some software gets confused if both are in the library path.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/gettext/lib
CPPFLAGS: -I/usr/local/opt/gettext/include
==> Summary
/usr/local/Cellar/gettext/0.18.1.1: 366 files, 12M
==> Installing php54 dependency: imap-uw
==> Downloading ftp://ftp.cac.washington.edu/imap/imap-2007f.tar.gz
######################################################################## 100.0%
######################################################################## 100.0%==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file Makefile
Hunk #1 succeeded at 419 (offset 1 line).
==> make oxp
/usr/local/Cellar/imap-uw/2007f: 150 files, 9.5M, built in 26 seconds
==> Installing php54 dependency: libpng
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libpng-1.5.13.lion.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libpng-1.5.13.lion.bottle.tar.gz
==> Caveats
This formula is keg-only: so it was not symlinked into /usr/local.
Mac OS X already provides this software in versions before Mountain Lion.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/libpng/lib
CPPFLAGS: -I/usr/local/opt/libpng/include
==> Summary
/usr/local/Cellar/libpng/1.5.13: 14 files, 1.0M
==> Installing php54 dependency: autoconf
==> Downloading http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz
######################################################################## 100.0%
==> Patching
patching file bin/autoreconf.in
==> ./configure --prefix=/usr/local/Cellar/autoconf/2.69
==> make install
==> Caveats
This formula is keg-only: so it was not symlinked into /usr/local.
Xcode (up to and including 4.2) provides (a rather old) Autoconf.
==> Summary
/usr/local/Cellar/autoconf/2.69: 69 files, 2.0M, built in 13 seconds
==> Installing php54 dependency: automake
==> Downloading http://ftpmirror.gnu.org/automake/automake-1.12.5.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/automake/1.12.5
==> make install
==> Caveats
This formula is keg-only: so it was not symlinked into /usr/local.
Xcode (up to and including 4.2) provides (a rather old) Automake.
==> Summary
/usr/local/Cellar/automake/1.12.5: 130 files, 2.1M, built in 10 seconds
==> Installing php54 dependency: libtool
==> Downloading http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libtool/2.4.2 --program-prefix=g --enable-ltdl-install
==> make install
==> Caveats
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
==> Caveats
This formula is keg-only: so it was not symlinked into /usr/local.
Xcode (up to and including 4.2) provides (a rather old) Libtool.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/libtool/lib
CPPFLAGS: -I/usr/local/opt/libtool/include
==> Summary
/usr/local/Cellar/libtool/2.4.2: 66 files, 2.2M, built in 23 seconds
==> Installing php54 dependency: tidy
==> Downloading ftp://mirror.internode.on.net/pub/gentoo/distfiles/tidy-20090325.tar.bz2
######################################################################## 100.0%
######################################################################## 100.0%==> sh build/gnuauto/setup.sh
==> ./configure --prefix=/usr/local/Cellar/tidy/20090325 --mandir=/usr/local/Cellar/tidy/20090325/share/man
==> make install
/usr/local/Cellar/tidy/20090325: 10 files, 952K, built in 28 seconds
==> Installing php54 dependency: zlib
==> Downloading http://zlib.net/zlib-1.2.7.tar.gz
######################################################################## 100.0%
==> Patching
patching file configure
==> ./configure --prefix=/usr/local/Cellar/zlib/1.2.7
==> make install
==> Caveats
This formula is keg-only: so it was not symlinked into /usr/local.
Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/zlib/lib
CPPFLAGS: -I/usr/local/opt/zlib/include
==> Summary
/usr/local/Cellar/zlib/1.2.7: 9 files, 384K, built in 6 seconds
==> Installing php54
==> Downloading http://www.php.net/get/php-5.4.8.tar.bz2/from/this/mirror
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/php54/5.4.8 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/5.4 --with-con
tail: /Volumes/Caviar: No such file or directory
tail: Green/Users/robrecord/Library/Logs/Homebrew/php54/01.configure: No such file or directory
Error: uncaught throw `Failed executing: ./configure --prefix=/usr/local/Cellar/php54/5.4.8 --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/Cellar/zlib/1.2.7 --with-ldap --with-ldap-sasl=/usr --with-xmlrpc --with-kerberos=/usr --with-xsl=/usr --with-curl=/usr/local/Cellar/curl/7.28.0 --with-gd --enable-gd-native-ttf --with-freetype-dir=/usr/local/Cellar/freetype/2.4.10 --with-mcrypt=/usr/local/Cellar/mcrypt/2.5.8 --with-jpeg-dir=/usr/local/Cellar/jpeg/8d --with-png-dir=/usr/local/Cellar/libpng/1.5.13 --with-gettext=/usr/local/Cellar/gettext/0.18.1.1 --with-snmp=/usr --with-libedit --mandir
Please report this bug:
https://github.com/mxcl/homebrew/wiki/troubleshooting
/usr/local/Library/Formula/abstract-php.rb:131:in `throw'
/usr/local/Library/Formula/abstract-php.rb:131:in `install'
/usr/local/Library/Homebrew/build.rb:137:in `install'
/usr/local/Library/Homebrew/formula.rb:225:in `brew'
/usr/local/Library/Homebrew/formula.rb:585:in `stage'
/usr/local/Library/Homebrew/extend/fileutils.rb:21:in `mktemp'
/usr/local/Library/Homebrew/formula.rb:581:in `stage'
/usr/local/Library/Homebrew/formula.rb:220:in `brew'
/usr/local/Library/Homebrew/build.rb:116:in `install'
/usr/local/Library/Homebrew/build.rb:43:in `main'
/usr/local/Library/Homebrew/build.rb:12
/usr/local/Library/Formula/php54.rb:24
$ brew install -V /usr/local/Cellar/homebrew-php/formula.rb
Error: undefined method `version' for nil:NilClass
Please report this bug:
https://github.com/mxcl/homebrew/wiki/troubleshooting
/usr/local/Library/Homebrew/formula.rb:52:in `initialize'
/usr/local/Library/Homebrew/formula.rb:399:in `new'
/usr/local/Library/Homebrew/formula.rb:399:in `factory'
/usr/local/Library/Homebrew/extend/ARGV.rb:20:in `formulae'
/usr/local/Library/Homebrew/extend/ARGV.rb:20:in `map'
/usr/local/Library/Homebrew/extend/ARGV.rb:20:in `formulae'
/usr/local/Library/Homebrew/cmd/install.rb:25:in `install'
/usr/local/bin/brew:94:in `send'
/usr/local/bin/brew:94
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment