This is an old revision of the document!
Building a PHP Test Environment on Mac OS X
The following instructions were written for and tested on Mac OS X 10.6 Snow Leopard. Please install all OS software updates before starting to build your test environment.
Building a PHP test environment on Mac OS X is a five step process:
- Install Xcode
- Download the Automated Build Scripts
- Build the Latest Version of PHP 5.2
- Build the Latest Version of PHP 5.3
- Build the Latest Version of PHP Trunk
We recommend you run tests you've written against the three main branches of PHP: 5.2, 5.3 and Trunk.
The rest of the instructions assume you will be building your environment on your ~/Desktop. If you choose to build in another location, please change the corresponding paths in all commands found throughout the rest of the instructions.
Install Xcode
The build tools that Mac OS X needs to configure compile and build PHP are all included in Xcode. Xcode can be installed from the Mac OS X Installation DVD or downloaded here. Please install Xcode now.