-
-
Save 7hunderbird/dcdd73e71daa8b141f33 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
→ brew install php55 --with-intl | |
==> Installing php55 dependency: freetype | |
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/freetype-2. | |
Already downloaded: /Library/Caches/Homebrew/freetype-2.4.11.mountain_lion.bottle.tar.gz | |
==> Pouring freetype-2.4.11.mountain_lion.bottle.tar.gz | |
🍺 /usr/local/Cellar/freetype/2.4.11: 57 files, 2.5M | |
==> Installing php55 dependency: gettext | |
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/gettext-0.1 | |
Already downloaded: /Library/Caches/Homebrew/gettext-0.18.3.1.mountain_lion.bottle.tar.gz | |
==> Pouring gettext-0.18.3.1.mountain_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.3.1: 374 files, 12M | |
==> Installing php55 dependency: jpeg | |
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/jpeg-8d.mou | |
Already downloaded: /Library/Caches/Homebrew/jpeg-8d.mountain_lion.bottle.1.tar.gz | |
==> Pouring jpeg-8d.mountain_lion.bottle.1.tar.gz | |
🍺 /usr/local/Cellar/jpeg/8d: 18 files, 784K | |
==> Installing php55 dependency: libpng | |
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libpng-1.5. | |
Already downloaded: /Library/Caches/Homebrew/libpng-1.5.14.mountain_lion.bottle.tar.gz | |
==> Pouring libpng-1.5.14.mountain_lion.bottle.tar.gz | |
🍺 /usr/local/Cellar/libpng/1.5.14: 15 files, 1.0M | |
==> Installing php55 dependency: unixodbc | |
==> Downloading http://www.unixodbc.org/unixODBC-2.3.1.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/unixodbc-2.3.1.tar.gz | |
==> ./configure --prefix=/usr/local/Cellar/unixodbc/2.3.1 --enable-gui=no | |
==> make install | |
🍺 /usr/local/Cellar/unixodbc/2.3.1: 26 files, 1016K, built in 71 seconds | |
==> Installing php55 dependency: zlib | |
==> Downloading http://zlib.net/zlib-1.2.8.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/zlib-1.2.8.tar.gz | |
==> ./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, 392K, built in 4 seconds | |
==> Installing php55 | |
==> Downloading http://www.php.net/get/php-5.5.3.tar.bz2/from/this/mirror | |
Already downloaded: /Library/Caches/Homebrew/php55-5.5.3 | |
Warning: Backing up all known pear.conf and .pearrc files | |
Warning: If you have a pre-existing pear install outside | |
of homebrew-php, or you are using a non-standard | |
pear.conf location, installation may fail. | |
Warning: INTL is broken as of mxcl/homebrew#03ed757c, please install php55-intl | |
==> ./configure --prefix=/usr/local/Cellar/php55/5.5.3 --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/lo | |
==> make | |
==> make install | |
==> /usr/local/Cellar/php55/5.5.3/bin/pear config-set php_ini /usr/local/etc/php/5.5/php.ini | |
==> Caveats | |
To enable PHP in Apache add the following to httpd.conf and restart Apache: | |
LoadModule php5_module /usr/local/opt/php55/libexec/apache2/libphp5.so | |
The php.ini file can be found in: | |
/usr/local/etc/php/5.5/php.ini | |
✩✩✩✩ PEAR ✩✩✩✩ | |
If PEAR complains about permissions, 'fix' the default PEAR permissions and config: | |
chmod -R ug+w /usr/local/Cellar/php55/5.5.3/lib/php | |
pear config-set php_ini /usr/local/etc/php/5.5/php.ini | |
✩✩✩✩ Extensions ✩✩✩✩ | |
If you are having issues with custom extension compiling, ensure that this php is | |
in your PATH: | |
PATH="$(brew --prefix josegonzalez/php/php55)/bin:$PATH" | |
PHP55 Extensions will always be compiled against this PHP. Please install them | |
using --without-homebrew-php to enable compiling against system PHP. | |
✩✩✩✩✩ INTL Support ✩✩✩✩✩ | |
icu4c is broken as of mxcl/homebrew#03ed757c, so you will need to install intl as | |
a separate extension: | |
brew install php55-intl | |
==> Summary | |
🍺 /usr/local/Cellar/php55/5.5.3: 491 files, 39M, built in 7.8 minutes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment