From: Alexandre Leduc on
Hi

We are running an old version of PEAR (on Win XP with PHP 5.1.6) so I used
the procedure described on this page:
http://pear.php.net/news/package.xml.1.0.php

When executing the first command, here is what happened:

*C:\Servers\xampp\php>pear upgrade --force
http://pear.php.net/get/PEAR-1.3.6.tgz
http://pear.php.net/get/Archive_Tar-1.3.1
http://pear.php.net/get/Console_Getop
t-1.2
downloading PEAR-1.3.6.tgz ...
Starting to download PEAR-1.3.6.tgz (106,880 bytes)
...........................done: 106,880 bytes
WARNING: channel "pear.php.net" has updated its protocols, use
"channel-update p
ear.php.net" to update
downloading Archive_Tar-1.3.1.tgz ...
Starting to download Archive_Tar-1.3.1.tgz (15,102 bytes)
.....done: 15,102 bytes
downloading Console_Getopt-1.2.tgz ...
Starting to download Console_Getopt-1.2.tgz (3,370 bytes)
.....done: 3,370 bytes
Did not download dependencies: pear/XML_RPC, use --alldeps or --onlyreqdeps
to d
ownload automatically
upgrade ok: channel://pear.php.net/Console_Getopt-1.2
upgrade ok: channel://pear.php.net/Archive_Tar-1.3.1
Could not delete C:\Servers\xampp\php\pear, cannot rename
C:\Servers\xampp\php\.
tmppear
ERROR: commit failed*

I tried it a second time and now I get this:

*C:\Servers\xampp\php>pear upgrade --force
http://pear.php.net/get/PEAR-1.3.6.tgz
http://pear.php.net/get/Archive_Tar-1.3.1
http://pear.php.net/get/Console_Getop
t-1.2

Fatal error: Call to undefined method PEAR_Frontend_CLI::setConfig() in
C:\Serve
rs\xampp\php\pear\pearcmd.php on line 137*

Can anyone help me?

--
Alex
From: Chuck Burgess on
On Thu, Sep 24, 2009 at 11:44 AM, Alexandre Leduc <alexleduc(a)gmail.com>wrote:

> Hi
>
> We are running an old version of PEAR (on Win XP with PHP 5.1.6) so I used
> the procedure described on this page:
> http://pear.php.net/news/package.xml.1.0.php
>
> When executing the first command, here is what happened:
>
> *C:\Servers\xampp\php>pear upgrade --force
> http://pear.php.net/get/PEAR-1.3.6.tgz
> http://pear.php.net/get/Archive_Tar-1.3.1
> http://pear.php.net/get/Console_Getop
> t-1.2 <http://pear.php.net/get/Console_Getop%0At-1.2>
> downloading PEAR-1.3.6.tgz ...
> Starting to download PEAR-1.3.6.tgz (106,880 bytes)
> ..........................done: 106,880 bytes
> WARNING: channel "pear.php.net" has updated its protocols, use
> "channel-update p
> ear.php.net" to update
> downloading Archive_Tar-1.3.1.tgz ...
> Starting to download Archive_Tar-1.3.1.tgz (15,102 bytes)
> ....done: 15,102 bytes
> downloading Console_Getopt-1.2.tgz ...
> Starting to download Console_Getopt-1.2.tgz (3,370 bytes)
> ....done: 3,370 bytes
> Did not download dependencies: pear/XML_RPC, use --alldeps or --onlyreqdeps
> to d
> ownload automatically
> upgrade ok: channel://pear.php.net/Console_Getopt-1.2
> upgrade ok: channel://pear.php.net/Archive_Tar-1.3.1
> Could not delete C:\Servers\xampp\php\pear, cannot rename
> C:\Servers\xampp\php\.
> tmppear
> ERROR: commit failed*
>
> I tried it a second time and now I get this:
>
> *C:\Servers\xampp\php>pear upgrade --force
> http://pear.php.net/get/PEAR-1.3.6.tgz
> http://pear.php.net/get/Archive_Tar-1.3.1
> http://pear.php.net/get/Console_Getop
> t-1.2 <http://pear.php.net/get/Console_Getop%0At-1.2>
>
> Fatal error: Call to undefined method PEAR_Frontend_CLI::setConfig() in
> C:\Serve
> rs\xampp\php\pear\pearcmd.php on line 137*
>
> Can anyone help me?
>
> --
> Alex
>


Hi Alex,

It sounds like the installation encountered some kind of file permission
error in the middle of the installation, but not before many of the PEAR
installer's own files were updated. Given that the "pear" command won't run
now, I don't think we can restore things that way.

If your setup is such that you are fine with upgrading to the newest PEAR
installer packages (v1.9.0), which is still compatible with your PHP 5.1.6,
you could try the initial installation instructions for installing on
Windows [1]. Given that this is XAMPP, though, I'm not sure if some PHP
packages already installed (e.g. phpMyAdmin) could be adversely affected.
--
CRB


[1] -- http://pear.php.net/manual/en/installation.getting.php