php-build is a utility for building versions of PHP to use them side by side with each other. The overall structure is loosly borrowed from Sam Stephenson's ruby-build.
Install standalone php-build
Clone the Git Repository:
% git clone git://github.com/php-build/php-build.git
Then go into the extracted/cloned directory and run:
php-build to the default prefix
To install php-build to an other location than
/usr/local set the
% PREFIX=$HOME/local ./install.sh
If you don't have permissions to write to the prefix, then you have to run
install.sh as superuser, either via
su -c or via
Locate your phpenv directory:
% ls $HOME/.phpenv
Clone the Git repository into phpenv plugins directory:
% git clone git://github.com/php-build/php-build.git $HOME/.phpenv/plugins/php-build
Now you can use php-build as phpenv plugin, as follows:
% phpenv install <definition>
The built version will be installed into
Issue reports and pull requests are always welcome.
- Freenode channel:
- Google group: https://groups.google.com/forum/#!forum/php-build-developers
All contributions will be reviewed and merged by the core team:
php-build is released under the MIT License.