Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.16

Bug #18339 Can't upgrade to 1.9.1 from 1.9.0
Submitted: 2011-03-05 02:50 UTC
From: fivelow Assigned: dufuz
Status: Closed Package: PEAR
PHP Version: 5.3.1 OS: Snow Leopard
Roadmaps: (Not assigned)    
Subscription  


 [2011-03-05 02:50 UTC] fivelow (John Aikens)
Description: ------------ Im running pear 1.9.0 and I tried to upgrade the package to 1.9.1 to run phpUnit. I get an error: pear/Console_Getopt requires PEAR Installer (version >= 1.9.1), installed version is 1.9.0 So I can't upgrade to 1.9.1 because I need pear/Console_Getopt and the upgrade fails without it. But I can't get pear/Console_Getopt because I don't have 1.9.1 and it says it's required to get pear/Console_Getopt. It's and endless circle. There is no way out. Can't upgrade because of dependencies, can fix dependencies without an upgrade. Expected result: ---------------- I expect to upgrade to 1.9.1 or install pear/Console_Getopt Actual result: -------------- I get an error trying to upgrade for failed dependencies and the when I try to fix the dependencies I'm told I can't fix them until I upgrade.

Comments

 [2011-03-05 02:53 UTC] fivelow (John Aikens)
Also your account confirmation page comes up as Untrusted in Firefox. Might want to look into that... just sayin'
 [2011-03-05 22:48 UTC] dufuz (Helgi Þormar Þorbjörnsson)
I just tried to upgrade from PEAR 1.9.0 with Console_Getopt 1.2.3 installed; I get the same warning you do but my upgrade goes through. PEAR 1.9.1 and 1.9.2 require Console_Getopt 1.2 or newer, it's only Console_Getopt 1.3.0 that depends on the 1.9.1. Are you sure your pear version didn't upgrade? pear -V should tell you
 [2011-03-06 00:06 UTC] fivelow (John Aikens)
PEAR Version: 1.9.0 PHP Version: 5.3.2 Zend Engine Version: 2.3.0 Running on: Darwin windowsinstall.home 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386 i386
 [2011-03-06 00:17 UTC] fivelow (John Aikens)
windowsinstall:~ jake$ pear upgrade pear pear/Console_Getopt requires PEAR Installer (version >= 1.9.1), installed version is 1.9.0 pear/PEAR requires package "pear/Console_Getopt" (recommended version 1.2.3) No valid packages found upgrade failed
 [2011-03-06 00:35 UTC] dufuz (Helgi Þormar Þorbjörnsson)
-Package: Console_Getopt +Package: PEAR
What version of Console_Getopt do you have installed? pear list should tell you. You clearly have a version installed or else no command would work; Wondering if it is in your include_path put pear doesn't see it as installed.
 [2011-03-06 00:39 UTC] fivelow (John Aikens)
windowsinstall:~ jake$ pear list Installed packages, channel pear.php.net: ========================================= Package Version State Archive_Tar 1.3.7 stable PHPUnit 1.3.2 stable Structures_Graph 1.0.4 stable XML_Util 1.2.1 stable
 [2011-03-06 00:43 UTC] fivelow (John Aikens)
It also says I have PHPUnit installed but I can't make it work or find it with locate or which
 [2011-03-06 01:02 UTC] dufuz (Helgi Þormar Þorbjörnsson)
How did you setup pear? What do you get when you locate PEAR.php and Getopt.php? Somehow your installation is lacking an important package but is picking it up from somewhere else. pear install Console_Getopt will most likely fix this whole situation. Another option is pear upgrade -o pear and it will install required dependencies, by default that is not done.
 [2011-03-06 01:07 UTC] fivelow (John Aikens)
locate PEAR.php windowsinstall:bin jake$ locate PEAR.php /Applications/MAMP/bin/php5.2/lib/php/PEAR.php /Applications/MAMP/bin/php5.3/lib/php/PEAR.php locate Getopt.php windowsinstall:bin jake$ locate Getopt.php /Applications/MAMP/bin/php5.2/lib/php/Console/Getopt.php /Applications/MAMP/bin/php5.3/lib/php/Console/Getopt.php /Applications/MAMP/htdocs/library/Zend/Console/Getopt.php /Applications/MAMP/htdocs/recipes/library/Zend/Console/Getopt.php /Applications/zend ide/bin/ZendFramework/library/Zend/Console/Getopt.php /usr/local/ZendFrameworkCli/ZendFramework-1.11.2/library/Zend/Console/Getopt.php /usr/local/ZendFrameworkCli/library/Zend/Console/Getopt.php If I try to install Getopt windowsinstall:bin jake$ pear install Console_Getopt pear/Console_Getopt requires PEAR Installer (version >= 1.9.1), installed version is 1.9.0 No valid packages found install failed
 [2011-03-06 02:44 UTC] fivelow (John Aikens)
I tried pear upgrade -o pear windowsinstall:bin jake$ pear upgrade -o pear pear/Console_Getopt requires PEAR Installer (version >= 1.9.1), installed version is 1.9.0 pear/PEAR requires package "pear/Console_Getopt" (recommended version 1.2.3) No valid packages found upgrade failed
 [2011-03-06 09:57 UTC] dufuz (Helgi Þormar Þorbjörnsson)
pear install -f Console_Getopt will do the trick. You clearly have Console_Getopt files in both your installations of PHP. Out of curiosity, try pear config-show | grep php_bin and show me the output. As to how you got into this situation; Do you recall anything specific with your installation of PEAR which may have caused Console_Getopt to be wiped from the pear registry? The files are clearly around
 [2011-03-06 10:04 UTC] fivelow (John Aikens)
windowsinstall:sql dumps jake$ pear install -f ConsoleGetopt No releases available for package "pear.php.net/ConsoleGetopt" install failed pear config-show gives windowsinstall:sql dumps jake$ pear config-show | grep php_bin PHP CLI/CGI binary php_bin /Applications/MAMP/bin/php5.3/bin/php
 [2011-03-07 03:52 UTC] dufuz (Helgi Þormar Þorbjörnsson)
You did pear install -f ConsoleGetopt but it needs to be pear install -f Console_Getopt
 [2011-03-07 03:58 UTC] fivelow (John Aikens)
Duh. Sorry id-10t error.
 [2011-03-08 03:11 UTC] dufuz (Helgi Þormar Þorbjörnsson)
Does this allow you to update to a newer PEAR version?
 [2011-03-08 03:22 UTC] fivelow (John Aikens)
Sorry I thought I posted an update... windowsinstall:MYrecipes jake$ pear install -f Console_Getopt warning: pear/Console_Getopt requires PEAR Installer (version >= 1.9.1), installed version is 1.9.0 downloading Console_Getopt-1.3.0.tgz ... Starting to download Console_Getopt-1.3.0.tgz (4,408 bytes) .....done: 4,408 bytes Validation Error: This package.xml requires PEAR version 1.9.1 to parse properly, we are version 1.9.0 Parsing of package.xml from file "/tmp/pear/cache/package.xml" failed Download of "pear/Console_Getopt" succeeded, but it is not a valid package archive Error: cannot download "pear/Console_Getopt" Download failed install failed At this point I give up. You're been a lot of help but it's gotten to the point where it just isn't worth wasting any more time on it. Thanks for you help. I appreciate you taking the time.
 [2011-03-08 03:59 UTC] dufuz (Helgi Þormar Þorbjörnsson)
No problem! A last ditch attempt is pear install -f Console_Getopt-1.2.3 to get bit older version in so the package is registered on your system.
 [2011-03-08 04:00 UTC] dufuz (Helgi Þormar Þorbjörnsson)
-Status: Open +Status: Bogus
Closing a bogus as I can't not reproduce and we can't seem to find the cause why the package has gone missing from the registry.
 [2011-03-08 04:05 UTC] fivelow (John Aikens)
LMAO that last suggestion WORKED. add the 1.2.3. Sigh. What a weekend.
 [2011-03-08 04:59 UTC] dufuz (Helgi Þormar Þorbjörnsson)
-Status: Bogus +Status: Closed -Assigned To: +Assigned To: dufuz
Cool! Sorry about the hassle you've had to go through; I should have thought of the - 1.2.3 thing sooner, I had it in my head but didn't communicate it properly :-P Would be interesting to know what is the story with your setup, how that package vanished from your registry without removing any files! For now I'm just going to reduce the PEAR dependency on the package.