|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-08-18 06:39 UTC] mike@php.net
Description: ------------ php -r 'include "http://go-pear.org/";' fails at "Extracting Installer..." with message: "Unsopported compression type: ''" PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 23:00:01 2025 UTC |
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"); } ---------------------------------