From c3246109bde8468f7225820df6370532a8de00e7 Mon Sep 17 00:00:00 2001
From: Sobak
-
[sudo] yum|apt-get|ports install package[-dev[el]]
[sudo] yum|apt-get|ports install package[-dev[el]]
For those working in Ubuntu Linux, you can run the following command to automate the installation of dependencies:
sudo apt-get build-dep php5
sudo apt-get build-dep php5
sudo apt-get build-dep php5-extname
sudo apt-get build-dep php5-extname
@@ -101,23 +101,23 @@ site_header("Get Involved", array("current" => "community")); Visual Studio 2008 and 2012:
cd C:\path-to-workspace
bin\phpsdk_setvars.bat
bin\phpsdk_buildtree.bat phpdev
cd C:\path-to-workspace
bin\phpsdk_setvars.bat
bin\phpsdk_buildtree.bat phpdev
The next step for everyone is to obtain the versioned PHP sources via git:
git clone -b BRANCH https://github.com/php/php-src .
git clone -b BRANCH https://github.com/php/php-src .
At this point you have a working build environment and the vanilla sources for your chosen branch of PHP, it is a good idea, before you change anything at all, to create a new branch and switch to it, in preparation for your awesome changes to come:
git checkout -b my-awesome-changes
git checkout -b my-awesome-changes
All operating systems now converge on (near as makes no difference) the same solutions for the rest of the build process:
buildconf: generates the configure script for PHP
configure: configures the build of PHP and creates Makefile
make: builds PHP
make test: runs testsuite
make install: installs PHP
buildconf: generates the configure script for PHP
configure: configures the build of PHP and creates Makefile
make: builds PHP
make test: runs testsuite
make install: installs PHP
For Microsoft Windows operating systems, those commands looks like this:
buildconf
configure --with-prefix=C:\my-awesome-php
nmake
nmake test
nmake install
buildconf
configure --with-prefix=C:\my-awesome-php
nmake
nmake test
nmake install
While for the rest of us, those commands look like this:
./buildconf
./configure --prefix=/opt/my-awesome-php
make
make test
make install
./buildconf
./configure --prefix=/opt/my-awesome-php
make
make test
make install
@@ -168,7 +168,7 @@ site_header("Get Involved", array("current" => "community"));
It is also possible to run a set (directory) of tests in the following way:
[n]make test TESTS=sapi/cli
[n]make test TESTS=sapi/cli