Skip to content

Instantly share code, notes, and snippets.

@hacfi
Created May 14, 2015 22:40
Show Gist options
  • Save hacfi/8c39d9413be281f3f924 to your computer and use it in GitHub Desktop.
Save hacfi/8c39d9413be281f3f924 to your computer and use it in GitHub Desktop.
Compile PHP7/master on OS X
!#/bin/bash
mkdir -p /usr/local/src/php-src
curl -L https://github.com/php/php-src/archive/master.tar.gz | tar -xzv -C /usr/local/src/php-src --strip-components=1
mkdir /usr/local/src/php-src/ext/ast
curl -L https://github.com/nikic/php-ast/archive/master.tar.gz | tar -xzv -C /usr/local/src/php-src/ext/ast --strip-components=1
cd /usr/local/src/php-src/
./buildconf
./configure \
--disable-debug \
--enable-ast \
--enable-bcmath \
--enable-calendar \
--enable-exif \
--enable-fpm \
--enable-ftp \
--enable-intl \
--enable-mbstring \
--enable-mysqlnd \
--enable-pcntl \
--enable-phar=shared \
--enable-phpdbg \
--enable-shmop \
--enable-soap \
--enable-sockets \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--enable-xmlreader \
--enable-zend-signals \
--enable-zip \
--with-bz2 \
--with-curl=/usr \
--with-freetype-dir=/usr \
--with-gd \
--with-gettext=/usr \
--with-jpeg-dir=/usr \
--with-mcrypt=/usr \
--with-mhash \
--with-mysqli=mysqlnd \
--with-openssl \
--with-pdo-mysql=mysqlnd \
--with-pdo-sqlite \
--with-png-dir=/usr \
--with-readline \
--with-tidy \
--with-xmlrpc \
--with-xsl \
--with-zlib=/usr
#!/bin/bash
brew install \
bison \
freetype \
gettext \
homebrew/dupes/zlib \
icu4c \
jpeg \
libpng \
openssl \
readline \
unixodbc
brew link bison --force
brew link gettext --force
brew link icu4c --force
brew link readline --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment