Created
May 14, 2015 22:40
-
-
Save hacfi/8c39d9413be281f3f924 to your computer and use it in GitHub Desktop.
Compile PHP7/master on OS X
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
!#/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 |
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
#!/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