$ brew tap josegonzalez/php Cloning into '/usr/local/Library/Taps/josegonzalez-php'... remote: Reusing existing pack: 5827, done. remote: Total 5827 (delta 0), reused 0 (delta 0) Receiving objects: 100% (5827/5827), 1.13 MiB | 392.00 KiB/s, done. Resolving deltas: 100% (3585/3585), done. Checking connectivity... done. Tapped 391 formula It looks like you tapped a private repository. To avoid entering your credentials each time you update, you can use git HTTP credential caching or issue the following command: cd /usr/local/Library/Taps/josegonzalez-php git remote set-url origin git@github.com:josegonzalez/homebrew-php.git
$ brew install php56 Cloning into '/usr/local/Library/Taps/homebrew-dupes'... remote: Reusing existing pack: 1169, done. remote: Counting objects: 9, done. remote: Compressing objects: 100% (9/9), done. remote: Total 1178 (delta 2), reused 0 (delta 0) Receiving objects: 100% (1178/1178), 232.33 KiB | 147.00 KiB/s, done. Resolving deltas: 100% (616/616), done. Checking connectivity... done. Tapped 39 formula ==> Installing dependencies for php56: unixodbc, homebrew/dupes/zlib ==> Installing php56 dependency: unixodbc ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/unixodbc-2. ######################################################################## 100,0% ==> Pouring unixodbc-2.3.2.mountain_lion.bottle.tar.gz 🍺 /usr/local/Cellar/unixodbc/2.3.2: 31 files, 1,0M ==> Installing php56 dependency: homebrew/dupes/zlib ==> Downloading http://zlib.net/zlib-1.2.8.tar.gz ######################################################################## 100,0% ==> Patching patching file configure ==> ./configure --prefix=/usr/local/Cellar/zlib/1.2.8 ==> 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.8: 9 files, 396K, built in 9 seconds ==> Installing php56 ==> Downloading http://downloads.php.net/tyrael/php-5.6.0beta1.tar.bz2 ######################################################################## 100,0% ==> ./configure --prefix=/usr/local/Cellar/php56/5.6.0-beta.1 --localstatedir=/u ==> make ==> make install ==> /usr/local/Cellar/php56/5.6.0-beta.1/bin/pear config-set php_ini /usr/local/etc/php/5.6/php.ini ==> Caveats The php.ini file can be found in: /usr/local/etc/php/5.6/php.ini ✩✩✩✩ PEAR ✩✩✩✩ If PEAR complains about permissions, 'fix' the default PEAR permissions and config: chmod -R ug+w /usr/local/Cellar/php56/5.6.0-beta.1/lib/php pear config-set php_ini /usr/local/etc/php/5.6/php.ini ✩✩✩✩ Extensions ✩✩✩✩ If you are having issues with custom extension compiling, ensure that you are using the brew version, by placing /usr/local/bin before /usr/sbin in your PATH: PATH="/usr/local/bin:$PATH" PHP56 Extensions will always be compiled against this PHP. Please install them using --without-homebrew-php to enable compiling against system PHP. ✩✩✩✩ PHP CLI ✩✩✩✩ If you wish to swap the PHP you use on the command line, you should add the following to ~/.bashrc, ~/.zshrc, ~/.profile or your shell's equivalent configuration file: export PATH="$(brew --prefix homebrew/php/php56)/bin:$PATH" To have launchd start php56 at login: ln -sfv /usr/local/opt/php56/*.plist ~/Library/LaunchAgents Then to load php56 now: launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php56.plist ==> Summary 🍺 /usr/local/Cellar/php56/5.6.0-beta.1: 495 files, 40M, built in 7.2 minutes
--