Skip to content

Instantly share code, notes, and snippets.

@rodolfobandeira
Created December 2, 2017 15:04
Show Gist options
  • Save rodolfobandeira/ac203ec57d50ca239e43328294b82bd2 to your computer and use it in GitHub Desktop.
Save rodolfobandeira/ac203ec57d50ca239e43328294b82bd2 to your computer and use it in GitHub Desktop.

Compiling PHP 7.0.4 on Ubuntu


sudo apt-get install autoconf

sudo autoconf

sudo chown -R rbandeira:rbandeira .

sudo apt-get install make

sudo apt-get install build-essential

./buildconf --force

sudo apt-get install re2c

sudo apt-get install bison

sudo apt-get install libxml2-dev

sudo apt-get install libssl-dev

./configure --prefix=/root/php-7.0.4

make;make install

cd /root/php-7.0.4/bin/

./php -v

PHP 7.0.4 (cli) (built: Mar 24 2016 19:50:36) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment