Problems compiling PHP

#1
Hey everyone,

I'm trying to get php 5.2.14 compiled on this client's server and it's fighting me every step of the day. It's an Ubuntu server (I've done litespeed with zero problems on CentOS many times).

When doing the configuration step, I'm getting the following error approx 95% of the time:

Code:
Retrieving LSAPI from [LITESPEED URL]/packages/lsapi/php-litespeed-5.4.tgz
2010-12-07 09:38:39 URL:[LITESPEED URL]/packages/lsapi/php-litespeed-5.4.tgz [27012/27012] -> "php-litespeed-5.4.tgz" [1]
Extracting LSAPI archive: tar -xzf php-litespeed-5.4.tgz

gzip: stdout: Broken pipe
tar: Child returned status 1
tar: Exiting with failure status due to previous errors
**ERROR** Could not extract LSAPI archive
I've gotten it to go through a couple times, but then I run into errors in the actual build prep, so been trying to work through those one by one.

What could be causing this and how would i fix it?

Thanks
 

webizen

Well-Known Member
#2
What version is running on your Ubuntu server?

Can you manually run this and see if you get the same error?
Code:
# curl -L -o "php-litespeed-5.4.tgz" [LITESPEED URL]/packages/lsapi/php-litespeed-5.4.tgz
# tar -xzf php-litespeed-5.4.tgz
 
#3
Ubuntu version info:

Code:
Distributor ID: Ubuntu
Description:    Ubuntu 9.10
Release:        9.10
Codename:       karmic
Trying to run that command, I get:

Code:
$ curl -L -o "php-litespeed-5.4.tgz" [LITESPEED URL]/packages/lsapi/php-litespeed-5.4.tgz
curl: (3) [globbing] error: bad range specification after pos 2
EDIT: Wait, that was my bad, for copying it, hang on.
 
Last edited:

webizen

Well-Known Member
#6
See if this helps your situation:

There are reports that tar (version 1.22-1) that comes with Ubuntu 9.10 includes a regression and could cause the error.
tar -xzf file.tgz

gzip: stdout: Broken pipe
tar: Child returned status 1
tar: Exiting with failure status due to previous errors
The problem is resolved in tar 1.22-1.1 and later.
 
Top