Re:Php-build, Compile and Install PHP
by yuri41 on Friday November 25, 2011 @03:03AM
(#3276536)
The mission of php-build is to reduce my workflow of testing new PHP versions to one command I can run. php-build also provides a opinionated default configuration, which you can build on and extend.
Without php-build I have to do this when I want to test, for example PHP 5.4.0RC1:
1. Find a tarball
2. Extract Tarball
3. Configure it
3a. If I already have a script to configure this version go to 4.
3b. Pick configure options (PHP has a sh*tload of them)
3c. See if it works
4. make && make install
5. install Pyrus
6. install XDebug
7. install PHPUnit
So with php-build (and php-build-plugin-phpunit):
1. php-build -i development 5.4.0rc1 ~/.phpenv/versions/5.4.0rc1
2. ?
3. Profit
Without php-build I have to do this when I want to test, for example PHP 5.4.0RC1:
1. Find a tarball 2. Extract Tarball 3. Configure it 3a. If I already have a script to configure this version go to 4. 3b. Pick configure options (PHP has a sh*tload of them) 3c. See if it works 4. make && make install 5. install Pyrus 6. install XDebug 7. install PHPUnit
So with php-build (and php-build-plugin-phpunit): 1. php-build -i development 5.4.0rc1 ~/.phpenv/versions/5.4.0rc1 2. ? 3. Profit