Skip to content

Instantly share code, notes, and snippets.

@Partyschaum
Created October 31, 2016 15:39
Show Gist options
  • Save Partyschaum/0bf2048421a4d7592c6bba2465f7fcc1 to your computer and use it in GitHub Desktop.
Save Partyschaum/0bf2048421a4d7592c6bba2465f7fcc1 to your computer and use it in GitHub Desktop.
phpbrew --debug install 7.0.12 +default +dbs +openssl=/usr/local/opt/openssl
===> phpbrew will now build 7.0.12
---> Parsing variants from command arguments '+default +dbs +openssl=/usr/local/opt/openssl'
===> Loading and resolving variants...
Checking distribution checksum...
Checksum matched: d7b11b40d84ed1f590e5f086f3711a3c
===> Distribution file was successfully extracted, skipping...
Source Directory: /Users/hauke/.phpbrew/build/php-7.0.12
Found existing Makefile, running make clean to ensure everything will be rebuilt.
You can append --no-clean option after the install command if you don't want to rebuild.
===> Running make clean: /usr/bin/make -C '/Users/hauke/.phpbrew/build/php-7.0.12' --quiet 'clean'
Running Command:/usr/bin/make -C '/Users/hauke/.phpbrew/build/php-7.0.12' --quiet 'clean'
Writing variant info to /Users/hauke/.phpbrew/php/php-7.0.12/phpbrew.variants
===> Checking patches...
Checking patch for replace apache php module name with custom version name
Enabled variants: [openssl, xml, opcache, sqlite, mysql, pgsql, pdo, bcmath, bz2, calendar, cli, ctype, dom, fileinfo, filter, ipc, json, mbregex, mbstring, mhash, mcrypt, pcntl, pcre, phar, posix, readline, sockets, tokenizer, curl, zip]
Disabled variants: []
Found existing build.log, renaming it to /Users/hauke/.phpbrew/build/php-7.0.12/build.log.1477923764
===> Configuring 7.0.12...
Use tail command to see what's going on:
$ tail -F /Users/hauke/.phpbrew/build/php-7.0.12/build.log
./configure '--cache-file='\''/Users/hauke/.phpbrew/cache/config.cache'\''' '--prefix=/Users/hauke/.phpbrew/php/php-7.0.12' '--with-config-file-path=/Users/hauke/.phpbrew/php/php-7.0.12/etc' '--with-config-file-scan-dir=/Users/hauke/.phpbrew/php/php-7.0.12/var/db' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--with-zlib=/usr' '--with-openssl=/usr/local/opt/openssl' '--enable-dom' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/usr/local/opt/libxml2' '--enable-opcache' '--with-sqlite3' '--with-pdo-sqlite' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-mysql-sock=/tmp/mysql.sock' '--with-pgsql=/usr/local/Cellar/postgresql/9.5.4_1/bin' '--with-pdo-pgsql=/usr/local/Cellar/postgresql/9.5.4_1/bin' '--enable-pdo' '--enable-bcmath' '--with-bz2=/usr' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-dom' '--enable-fileinfo' '--enable-filter' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-json' '--enable-mbregex' '--enable-mbstring' '--with-mhash=/usr/local' '--with-mcrypt=/usr/local' '--enable-pcntl' '--with-pcre-regex' '--with-pcre-dir=/usr/local' '--enable-phar' '--enable-posix' '--with-readline=/usr/local/opt/readline' '--enable-sockets' '--enable-tokenizer' '--with-curl=/usr' '--enable-zip' '--with-pear=/Users/hauke/.phpbrew/php/php-7.0.12/lib/php' >> /Users/hauke/.phpbrew/build/php-7.0.12/build.log 2>&1
===> Checking patches...
Checking patch for php5.3.29 multi-sapi patch.
Checking patch for php5.3.x on 64bit machine when intl is enabled.
Checking patch for openssl dso linking patch
6 changes patched.
===> Building...
make >> /Users/hauke/.phpbrew/build/php-7.0.12/build.log 2>&1
Build finished: 11.1 minutes.
Installing...
---> Creating php-fpm.conf
---> Creating php.ini
---> Copying /Users/hauke/.phpbrew/build/php-7.0.12/php.ini-development
Found existing /Users/hauke/.phpbrew/php/php-7.0.12/etc/php.ini.
---> Found date.timezone is not set, patching...
Source directory: /Users/hauke/.phpbrew/build/php-7.0.12
Congratulations! Now you have PHP with 7.0.12 as php-7.0.12
* We found that you enabled 'mysql' variant, you might need to setup your
'pdo_mysql.default_socket' or 'mysqli.default_socket' in your php.ini file.
* To configure your installed PHP further, you can edit the config file at
/Users/hauke/.phpbrew/php/php-7.0.12/etc/php.ini
To use the newly built PHP, try the line(s) below:
$ phpbrew use php-7.0.12
Or you can use switch command to switch your default php to php-7.0.12:
$ phpbrew switch php-7.0.12
Enjoy!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment