Skip to content

Instantly share code, notes, and snippets.

@TomK
Created May 14, 2015 11:10
Show Gist options
  • Save TomK/6e75ca5346364c5d44a8 to your computer and use it in GitHub Desktop.
Save TomK/6e75ca5346364c5d44a8 to your computer and use it in GitHub Desktop.
Build PHP7 on OSX
#!/bin/sh
brew install bison recode aspell gmp autoconf
ln -s /usr/local/Cellar/bison/3.0.4/bin/bison /usr/local/bin/bison
git clone https://github.com/php/php-src
cd php-src
./buildconf
./configure --prefix=$HOME/tmp/usr --with-config-file-path=$HOME/tmp/usr/etc --enable-mbstring --enable-zip --enable-bcmath --enable-pcntl --enable-ftp --enable-exif --enable-calendar --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --with-curl --with-mcrypt --with-iconv --with-gmp --with-pspell --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-freetype-dir=/usr --enable-gd-native-ttf --enable-gd-jis-conv --with-openssl --with-mysql=/usr/local/bin/mysql_config --with-pdo-mysql=/usr/local/bin/mysql_config --with-gettext=/usr/local/opt/gettext --with-zlib=/usr --with-bz2=/usr --with-recode=/usr --with-mysqli=/usr/local/bin/mysql_confi
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment