Skip to content

Instantly share code, notes, and snippets.

@joelibaceta
Created March 15, 2020 15:31
Show Gist options
  • Save joelibaceta/7e56543edd09c1c1edfdb00c1f6e85f2 to your computer and use it in GitHub Desktop.
Save joelibaceta/7e56543edd09c1c1edfdb00c1f6e85f2 to your computer and use it in GitHub Desktop.
Build PHP from source
sudo apt-get install build-essential autoconf automake libtool
wget http://launchpadlibrarian.net/ 140087283/libbison-dev_2.7.1.dfsg-1_amd64.deb
wget http://launchpadlibrarian.net/ 140087282/bison_2.7.1.dfsg-1_amd64.deb

sudo dpkg -i libbison-dev_2.7.1.dfsg-1_amd64.deb
sudo dpkg -i bison_2.7.1.dfsg-1_amd64.deb
sudo apt-get install libxml2-dev
./buildconf
./configure --disable-all --enable-debug 
make && make install
./php your_script.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment