Edit report at https://pear.php.net/bugs/bug.php?id=20514&edit=1
ID: 20514
Comment by: ivan@cdmon.com
Reported By: ivan@cdmon.com
Summary: invalid package.xml; not installable with pyrus
Status: Open
Type: Bug
Package: Archive_Tar
Operating System: Debian
PHP Version: 5.4.38
Roadmap Versions:
New Comment:
Alsin thanks for the reply, but I just found where the package.xml in
debian download for editing.
However this did not happen with the previous version of PEAR, so I
understand it is very simple to correct for them releasing a new version
to correct this problem.
Previous Comments:
------------------------------------------------------------------------
[2015-03-23 16:44:33] alsin
Hi,
Just for anyone who's met up with this problem: you can go inside the
'downloads' folder of the pyrus, de-archive the Archive_Tar-1.3.15.tar.
The result should be the Archive_Tar-1.3.15 folder and the package.xml.
Inside the package.xml there's a <date></date> tag missing in the first
<release> of the <changelog>. Just add there the tags with some date and
save. Then remove the original .tar archive and create a new one at its
place with the same name from the de-archived Archive_Tar-1.3.15 folder
and the package.xml you've just edited. Then go to the console and
install the Archive_Tar from your local .tar by specifying this command:
C:\path\to\php.exe C:\path\to\pyrus.phar install
path/to/pear/downloads/Archive_Tar-1.3.15.tar. The installation should
succeed now. And from now on you can install the PEAR itself.
------------------------------------------------------------------------
[2015-03-11 18:35:13] cweiske
-Package: PEAR
+Package: Archive_Tar
------------------------------------------------------------------------
[2015-03-11 17:23:35] piticli
Description:
------------
./pyrus install pear/pear
Pyrus version 2.0.0a4 SHA-1: 72271D92C3AA1FA96DF9606CD538868544609A52
Using PEAR installation found at /opt/phpfarm/inst/php-5.4.38/pear
Downloading pear.php.net/PEAR
Mime-type: application/octet-stream
Downloading
pear.php.net/Archive_Tar=================================================================>]
100% (283/283 kb)
Mime-type: application/octet-stream
Mime-type:
application/octet-stream==================================================================>]
100% (19/19 kb)
Pyrus\Package\Exception: Could not download abstract package
pear.php.net/Archive_Tar
Pyrus\HTTPException: Download of
http://pear.php.net/get/Archive_Tar-1.3.15.phar failed, file does not
exist
Pyrus\Package\Exception: Could not download from
"http://pear.php.net/get/Archive_Tar-1.3.15.tgz"
Pyrus\PackageFile\Exception: Invalid package.xml
Pyrus\XMLParser\Exception: Invalid XML document
Pyrus\XMLParser\Exception: Line 0: Element
'{http://pear.php.net/dtd/package-2.0}notes': This element is not
expected. Expected is ( {http://pear.php.net/dtd/package-2.0}date ).
Pyrus\Package\Exception: Could not download from
"http://pear.php.net/get/Archive_Tar-1.3.15.tar"
Pyrus\PackageFile\Exception: Invalid package.xml
Pyrus\XMLParser\Exception: Invalid XML document
Pyrus\XMLParser\Exception: Line 0: Element
'{http://pear.php.net/dtd/package-2.0}notes': This element is not
expected. Expected is ( {http://pear.php.net/dtd/package-2.0}date ).
Pyrus\HTTPException: Download of
http://pear.php.net/get/Archive_Tar-1.3.15.zip failed, file does not
exist
------------------------------------------------------------------------