Compiling PHP5 problems

gkamp

Active Member
#1
Just installed Litespeed and trying to compile PHP5 and got this:

Stopped due to Error. Please manually fix it.
**MAIN_STATUS** retrieved from /usr/local/lsws/phpbuild/buildphp_1298410956.6.progress
Preparing all source code for building PHP 5.3.5 with LSAPI
Retrieving PHP source archive from http://us.php.net/get/php-5.3.5.tar.gz/from/us.php.net/mirror
Extracting PHP source archive: tar -zxf php-5.3.5.tar.gz
Retrieving Suhosin patch from http://download.suhosin.org/suhosin-patch-5.3.5-0.9.10.patch.gz
**ERROR** Could not retrieve Suhosin patch:

**LOG_DETAIL** retrieved from /usr/local/lsws/phpbuild/buildphp_1298410956.6.log
=========================================================
Preparing all source code for building PHP 5.3.5 with LSAPI
=========================================================
Tue Feb 22 15:42:37 CST 2011

Changing to build directory /usr/local/lsws/phpbuild
Retrieving PHP source archive from http://us.php.net/get/php-5.3.5.tar.gz/from/us.php.net/mirror
2011-02-22 15:42:56 URL:http://us.php.net/distributions/php-5.3.5.tar.gz [14105504/14105504] -> "php-5.3.5.tar.gz" [1]
Extracting PHP source archive: tar -zxf php-5.3.5.tar.gz

Suhosin is enabled
Retrieving Suhosin patch from http://download.suhosin.org/suhosin-patch-5.3.5-0.9.10.patch.gz
http://download.suhosin.org/suhosin-patch-5.3.5-0.9.10.patch.gz:
2011-02-22 15:43:19 ERROR 404: Not Found.
**ERROR** Could not retrieve Suhosin patch



Don't know how to do it manually.
 
Last edited:

gkamp

Active Member
#3
got this after going the second round.

**MAIN_STATUS** retrieved from /usr/local/lsws/phpbuild/buildphp_1298413132.9.progress
Preparing all source code for building PHP 5.3.5 with LSAPI
php-5.3.5.tar.gz already downloaded, use the saved copy.
Extracting PHP source archive: tar -zxf php-5.3.5.tar.gz
Retrieving Suhosin patch from http://download.suhosin.org/suhosin-patch-5.3.4-0.9.10.patch.gz
Patching source with Suhosin patch
**ERROR** Could not patch source with Suhosin patch
 

gkamp

Active Member
#4
and got this log

**LOG_DETAIL** retrieved from /usr/local/lsws/phpbuild/buildphp_1298413132.9.log
=============================================================
Preparing all source code for building PHP 5.3.5 with LSAPI
=============================================================
Tue Feb 22 16:18:52 CST 2011

Changing to build directory /usr/local/lsws/phpbuild
php-5.3.5.tar.gz already downloaded, use the saved copy.
Extracting PHP source archive: tar -zxf php-5.3.5.tar.gz

Suhosin is enabled
Retrieving Suhosin patch from http://download.suhosin.org/suhosin-patch-5.3.4-0.9.10.patch.gz
2011-02-22 16:19:06 URL:http://download.suhosin.org/suhosin-patch-5.3.4-0.9.10.patch.gz [41092/41092] -> "suhosin-patch-5.3.5.patch.gz" [1]

Extracting Suhosin patch: gunzip -f suhosin-patch-5.3.5.patch.gz

Patching source with Suhosin patch
/usr/local/lsws/phpbuild/buildphp_1298413132.9.prep.sh: 132: patch: not found
**ERROR** Could not patch source with Suhosin patch
 

gkamp

Active Member
#8
Thanks. That worked out and it was able to finish building PHP 5.3.5 with LSAPI; but I then got this:

==============================================
Start building Suhosin Extension
==============================================
Tue Feb 22 18:16:09 CST 2011

Changing to build directory /usr/local/lsws/phpbuild/php-5.3.5/suhosin-0.9.32.1
Running PHPize for Suhosin extension
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

**ERROR** Could not run PHPize for Suhosin

How do I check the autoconf installation?
 
Top