Install build tool Here are detailed steps for installing compile tool for ubuntu. Install dependencies In most cases quite a lot of dependencies will be missing. You can install most of them using next command
|
sudo apt-get install libxml2-dev libpcre3-dev libbz2-dev libcurl4-openssl-dev libdb4.8-dev libjpeg-dev libpng12-dev libxpm-dev libfreetype6-dev libmysqlclient-dev postgresql-server-dev-9.1 libt1-dev libgd2-xpm-dev libgmp-dev libsasl2-dev libmhash-dev unixodbc-dev freetds-dev libpspell-dev libsnmp-dev libtidy-dev libxslt1-dev libmcrypt-dev |
Compile and install PHP Clone the PHP repository
|
sudo mkdir /opt/source && cd /opt/source git clone git@github.com:php/php-src.git && cd php-src |
Choose the version of php you want to compile and […]