Re: installing HTTP_Request

From: Date: Wed, 05 Dec 2007 18:02:00 +0000
Subject: Re: installing HTTP_Request
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28277@lists.php.net to get a copy of this message
Sorry, meant to send this to the whole list:
Date: Wed, 05 Dec 2007 09:43:46 -0800 To: Christian Weiske <cweiske@cweiske.de> From: Bennett Haselton <bennett@peacefire.org> Subject: Re: [PEAR] installing HTTP_Request
Hello Bennett,
I tried that and got this error: [root@D2585 ~]# pear upgrade --force PEAR-1.3.6.tgz Archive_Tar-1.3.1.tgz Console_Getopt-1.2.tgz pear upgrade --force PEAR-1.4.11 pear upgrade PEAR =20 Notice: Undefined index: st in RPC.php on line 292 Invalid postfix '-1.3.6.tgz', be sure to pass a valid PEAR version number or rel ease state
Damn. Pass "-O" (an uppercase o for offline) after the --force - I hope it stops using rpc then.
That gives the error "unrecognized option" [root@D2585 ~]# pear upgrade --force -O PEAR-1.3.6.tgz Archive_Tar-1.3.1.tgz Console_Getopt-1.2.tgz pear upgrade --force -O PEAR-1.4.11 pear upgrade PEAR Console_Getopt: unrecognized option -- O [root@D2585 ~]#
If that still does not help, you need to reinstall pear.
The funny thing is I tried this on three other dedicated machines and "pear upgrade PEAR" also gave errors on every one (all CentOS 4.4 or 4.5):
[root@mail ~]# pear -V PEAR Version: 1.3.2 PHP Version: 4.3.9 Zend Engine Version: 1.3.0 Running on: Linux mail.islamicnetwork.com 2.6.9-55.0.9.EL #1 Thu Sep 27 18:10:45 EDT 2007 i686 [root@mail ~]# pear upgrade PEAR Notice: Undefined index: st in RPC.php on line 292 downloading PEAR-1.6.2.tgz ... Starting to download PEAR-1.6.2.tgz (297,794 bytes) .....................done: 297,794 bytes requires package `PEAR' >= 1.3.3 requires package `Archive_Tar' >= 1.3.1 requires package `Structures_Graph' >= 1.0.2 PEAR: Dependencies failed [root@mail ~]#
[root@d2545 ~]# pear -V PEAR Version: 1.3.2 PHP Version: 4.3.9 Zend Engine Version: 1.3.0 Running on: Linux d2545.servadmin.com 2.6.9-42.0.8.EL #1 Tue Jan 30 12:10:22 EST 2007 i686 [root@d2545 ~]# pear upgrade PEAR Notice: Undefined index: st in RPC.php on line 292 downloading PEAR-1.6.2 ... Starting to download PEAR-1.6.2 (-1 bytes) ...done: 0 bytes could not extract the package.xml file [root@d2545 ~]#
[root@localhost ~]# pear upgrade PEAR Notice: Undefined index: st in RPC.php on line 292 downloading PEAR-1.6.2.tgz ... Starting to download PEAR-1.6.2.tgz (297,794 bytes) .................done: 297,794 bytes requires package `PEAR' >= 1.3.3 requires package `Archive_Tar' >= 1.3.1 requires package `Structures_Graph' >= 1.0.2 PEAR: Dependencies failed
How likely is it that four randomly selected machines would all have a broken PEAR installation on them? Is there perhaps a deeper problem here? All I want is to test a remote URL and find out yes/no if the URL exists or not. Is there some way to do that with 4 lines of code? I always used LWP::UserAgent when programming in Perl so I don't know much about direct socket programming.
        -Bennett


« previous php.pear.general (#28277) next »