Trobules Compiling PHP 5.3 On CentOS

#1
Below I will post what my screen says I am so lost in this. I am though surprised I have gotten this far.

I think its something to do with xcache but I'm not sure.

Just posting cause maybe someone will say I know what that is. Just maybe.:)

Step 4 : Monitoring build process
Stopped due to Error. Please manually fix it. It may due to missing packages, after you install it, rerun the same command and this page will show the updated log.

Notes:

* If the build process is successful, the PHP binary will be created under /usr/local/lsws//fcgi-bin/ with name lsphp-5.3.2, and a symbolic link of lsphp5 will be created or updated to the newly built binary. If lsphp-5.3.2 already exists, it will be renamed to lsphp-5.3.2.bak.
* To enable the XCache opcode cache, please make sure the following is added to your php.ini configuration file. In addition, you may need to check the log detail to determine the directory where your extensions are installed and add the directory to the extensions path in your php.ini configuration file.
extension=xcache.so

Main Status:

**MAIN_STATUS** retrieved from /usr/local/lsws/phpbuild/buildphp_1277745207.1.progress
Start building PHP 5.3.2 with LSAPI
Configuring PHP build (2-3 minutes)
**ERROR** Could not configure PHP build
 
#2
tep 3 : Preparing for building PHP 5.3.2 Binary
Stopped due to Error. Please manually fix it.

Main Status:

**MAIN_STATUS** retrieved from /usr/local/lsws/phpbuild/buildphp_1277746181.6.progress
Preparing all source code for building PHP 5.3.2 with LSAPI
php-5.3.2.tar.gz already downloaded, use the saved copy.
Extracting PHP source archive: tar -zxf php-5.3.2.tar.gz
Retrieving Suhosin patch from url/suhosin-patch-5.3.2-0.9.9.1.patch.gz
Patching source with Suhosin patch
**ERROR** Could not patch source with Suhosin patch

Detailed Log:

**LOG_DETAIL** retrieved from /usr/local/lsws/phpbuild/buildphp_1277746181.6.log
=============================================================
Preparing all source code for building PHP 5.3.2 with LSAPI
=============================================================
Mon Jun 28 19:29:41 CEST 2010

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

Suhosin is enabled
Retrieving Suhosin patch from url/suhosin-patch-5.3.2-0.9.9.1.patch.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

2 40847 2 1231 0 0 8005 0 0:00:05 --:--:-- 0:00:05 8005
100 40847 100 40847 0 0 258k 0 --:--:-- --:--:-- --:--:-- 37.7M

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

Patching source with Suhosin patch
/usr/local/lsws/phpbuild/buildphp_1277746181.6.prep.sh: line 128: patch: command not found
**ERROR** Could not patch source with Suhosin patch
 

NiteWave

Administrator
#3
/usr/local/lsws/phpbuild/buildphp_1277746181.6.prep.sh: line 128: patch: command not found
**ERROR** Could not patch source with Suhosin patch
please install "patch" utility.

if it's centOS,
"yum search patch"
to see which package you'll install.

the package name may be patch.i386 or patch.x86_64

then

yum install patch.i386 (or patch.x86_64)
 
Top