-
Notifications
You must be signed in to change notification settings - Fork 50
Building PHP Versions
Wil Moore III edited this page Oct 7, 2013
·
6 revisions
% brew tap josegonzalez/homebrew-php
% brew install php55
% brew unlink php55
% PHP_TARGET_VERSION=5.5.3
% mkdir -p /tmp/src/php-$PHP_TARGET_VERSION
% cd /tmp/src/php-$PHP_TARGET_VERSION
% curl -# -L http://downloads.php.net/stas/php-$PHP_TARGET_VERSION.tar.gz | tar -xz --strip 1
% ./configure \
--sysconfdir=/private/etc \
--prefix=/usr/local/Cellar/php/5.4.0a3 \
--with-config-file-path=/usr/local/Cellar/php/5.4.0a3/etc \
--mandir=/usr/local/Cellar/php/5.4.0a3/share/man \
--disable-debug \
--enable-bcmath \
--enable-calendar \
--enable-cli \
--enable-exif \
--enable-fpm \
--enable-ftp \
--enable-gd-native-ttf \
--enable-mbstring \
--enable-mbregex \
--enable-pcntl \
--enable-shmop \
--enable-soap \
--enable-sockets \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--enable-zip \
--with-bz2=/usr \
--with-curl=/usr \
--with-freetype-dir=/opt/local \
--with-gd \
--with-gettext=/usr/local/Cellar/gettext/0.17 \
--with-iconv-dir=/usr \
--with-iodbc \
--with-jpeg-dir=/usr/local/Cellar/jpeg/8b \
--with-kerberos=/usr \
--with-ldap \
--with-ldap-sasl=/usr \
--with-libxml-dir=/usr/local/Cellar/libxml2/2.7.7 \
--with-mcrypt=/usr/local/Cellar/mcrypt/2.5.8 \
--with-mysqli=mysqlnd \
--with-openssl=/usr \
--with-pdo-mysql=mysqlnd \
--with-png-dir=/usr/local/Cellar/libpng/1.2.44 \
--with-tidy \
--with-xmlrpc \
--with-xsl=/usr \
--with-zlib=/usr \
--without-pear \