Bug #2156 [Com]: go-pear fails

From: Date: Fri, 10 Sep 2004 16:45:40 +0000
Subject: Bug #2156 [Com]: go-pear fails
References: 1  Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-3111@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=2156&edit=1 ID: 2156 Comment by: zae26305 at oak dot zero dot ad dot jp Reported By: mike at php dot net Status: Open Type: Bug Package: Web Site Operating System: N/A PHP Version: Irrelevant New Comment: I met the same failure. Environment --------------------------------- php 4.3.2 without zlib support $Id: go-pear,v 1.67 2004/09/09 06:25:17 cellog Exp $ I got these messages. --------------------------------- (left out) The following PEAR packages are bundled with PHP: DB, Net_Socket, Net_SMTP, Mail, XML_Parser, PHPUnit. Would you like to install these as well? [Y/n] : n Loading zlib: failed Downloading uncompressed packages Downloading package: PEAR-stable......ok Downloading package: Archive_Tar-stable....ok Downloading package: Console_Getopt-stable....ok Downloading package: XML_RPC-stable....ok Bootstrapping: PEAR...................(remote) ok Bootstrapping: Archive_Tar............(remote) ok Bootstrapping: Console_Getopt.........(remote) ok Extracting installer..................Unsupported compression type '' Supported types are 'gz' and 'bz2'. --------------------------------- How about this patch? At least, it worked for me. --------------------------------- --- index.html.original Thu Sep 9 22:17:12 2004 +++ index.html Sat Sep 11 01:10:29 2004 @@ -649,7 +649,7 @@ $ext = substr($tarball['PEAR'], $dot+1); include_once 'Archive/Tar.php'; -$tar = &new Archive_Tar($tarball['PEAR'], $have_gzip); +$tar = &new Archive_Tar($tarball['PEAR'], ($have_gzip === FALSE) ? NULL : $have_gzip); if (!$tar->extractModify($ptmp, $pkg)) { bail("failed!\n"); } --------------------------------- Previous Comments: ------------------------------------------------------------------------ [2004-08-18 06:43:33] mike at php dot net I forgot to mention the most important part: if zlib is not available! ------------------------------------------------------------------------ [2004-08-18 06:39:17] mike at php dot net Description: ------------ php -r 'include "http://go-pear.org/";' fails at "Extracting Installer..." with message: "Unsopported compression type: ''" ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=2156&edit=1

« previous php.pear.webmaster (#3111) next »