For Programmers: Free Programming Magazines  


Home > Archive > PHP PEAR Questions and Answers > July 2007 > Re: [PEAR-QA] Console_Getopt-1.2.3.tgz". Invalid tgz file.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR-QA] Console_Getopt-1.2.3.tgz". Invalid tgz file.
Christian Weiske

2007-07-16, 7:01 pm

On Mon, Jul 16, 2007 at 06:11:57PM +0200, Sebastian Mendel wrote:
> is this a local error, or can anyone else confirm?
> Error: cannot download "pear/Console_Getopt"


Works for me
Sebastian Mendel

2007-07-17, 8:00 am

Christian Weiske schrieb:
> On Mon, Jul 16, 2007 at 06:11:57PM +0200, Sebastian Mendel wrote:
>
> Works for me


still not for me ... cleared all cached files

my PEAR is 1.5.4, all other packages are up to date, the update process
worked fine for them

the downloaded package contains only "Console/Getopt.php" is this right?



# pear -vvvv upgrade console_getopt

Notice: file_exists(): Unable to find the wrapper "channel" - did you forget
to enable it when you configured PHP? in PEAR/Downloader/Package.php on line
1368

Notice: is_file(): Unable to find the wrapper "channel" - did you forget to
enable it when you configured PHP? in PEAR/Downloader/Package.php on line 1377

Notice: is_file(): Unable to find the wrapper "channel" - did you forget to
enable it when you configured PHP? in PEAR/Downloader/Package.php on line 1377
Downloading "http://pear.php.net/get/Console_Getopt-1.2.3.tgz"
downloading Console_Getopt-1.2.3.tgz ...
Starting to download Console_Getopt-1.2.3.tgz (4,011 bytes)
.....done: 4,011 bytes
Could not get contents of package
"/var/tmp/pear/cache/Console_Getopt-1.2.3.tgz". Invalid tgz file.
Download of "pear/console_getopt" succeeded, but it is not a valid package
archive
Error: cannot download "pear/Console_Getopt"
Download failed
upgrade failed

Warning: unlink(/tmp/glibctestnw5lui): No such file or directory in
System.php on line 199





--
Sebastian Mendel

www.sebastianmendel.de
Sebastian Mendel

2007-07-17, 7:01 pm

Sebastian Mendel schrieb:
> Christian Weiske schrieb:
>
> still not for me ... cleared all cached files
>
> my PEAR is 1.5.4, all other packages are up to date, the update process
> worked fine for them
>
> # pear -vvvv upgrade -f console_getopt
>
> Downloading "http://pear.php.net/get/Console_Getopt-1.2.3.tgz"
> downloading Console_Getopt-1.2.3.tgz ...
> Starting to download Console_Getopt-1.2.3.tgz (4,011 bytes)
> ....done: 4,011 bytes
> Could not get contents of package
> "/var/tmp/pear/cache/Console_Getopt-1.2.3.tgz". Invalid tgz file.
> Download of "pear/console_getopt" succeeded, but it is not a valid package
> archive
> Error: cannot download "pear/Console_Getopt"
> Download failed
> upgrade failed


i tried the above on two system Red Hat 7.3 and Fedora dev

Fedora

- PHP 5.2.3
- PEAR latest devel

Red Hat 7.3

- PHP 5.2.2
- PEAR latest stable

on Red Hat i installed Console_Getopt and PEAR from file with

# pear install Console_Getopt-1.2.3.tgz

and the same for PEAR which worked fine

cause since yesterdays last run of pear upgrade-all on which first packages
installed fine but stopped on Console_Getopt, since them no packages could
be installed successfully - with the above error

the same for apc.enabled = Off/On

i now find a fix, but i do not know if this is an error in PHP 5.2.2

i changed the following, after which all worked fine again, in Archive/Tar.php:

function listContent()
{
$v_list_detail = array();
if ($this->_openRead()) {
- if (!$this->_extractList('', $v_list_detail, "list", '', '')) {
+ $r = $this->_extractList('', $v_list_detail, "list", '', '');
+ if (!$r) {
unset($v_list_detail);
$v_list_detail = 0;
}
$this->_close();
}

return $v_list_detail;
}


--
Sebastian Mendel

www.sebastianmendel.de
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com