For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > December 2007 > Re: [PEAR] installing HTTP_Request









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] installing HTTP_Request
Bennett Haselton

2007-12-05, 4:15 am

At 06:36 AM 12/5/2007 +0100, Christian Weiske wrote:
>1c57afbf.jpg Re [PEAR] installing HTTP_Requ.ems<file://c:\eudora\attach\Re
>[PEAR] installing HTTP_Requ.ems <0880.0002>>
>Content-Type: text/plain; charset=UTF-8
>Content-Transfer-Encoding: quoted-printable
>
>
>*** PGP Signature Status: unknown
>*** Signer: Unknown, Key ID = 0x24EAF823
>*** Signed: 12/4/2007 9:36:39 PM
>*** Verified: 12/4/2007 9:38:51 PM
>*** BEGIN PGP VERIFIED MESSAGE ***
>
>Hello Bennett,
>
>
>Yes.
>
>Which version of PEAR do you use?
>$ pear version
>
>Try to upgrade to the latest version (1.6.2) and see if it helps.


That command didn't work for me (output below). How do I get the version
number?

[root@D2585 ~]# pear version
Usage: pear [options] command [command-options] <parameters>
Type "pear help options" to list all options.
Type "pear help <command>" to get the help for the specified command.
Commands:
build Build an Extension From C Source
bundle Unpacks a Pecl Package
clear-cache Clear XML-RPC Cache
config-get Show One Setting
config-help Show Information About Setting
config-set Change Setting
config-show Show All Settings
cvsdiff Run a "cvs diff" for all files in a package
cvstag Set CVS Release Tag
download Download Package
download-all Downloads each avaible Package from master_server
info Display information about a package
install Install Package
list List Installed Packages
list-all List All Packages
list-upgrades List Available Upgrades
login Connects and authenticates to remote server
logout Logs out from the remote server
makerpm Builds an RPM spec file from a PEAR package
package Build Package
package-dependencies Show package dependencies
package-validate Validate Package Consistency
remote-info Information About Remote Packages
remote-list List Remote Packages
run-tests Run Regression Tests
search Search remote package database
shell-test Shell Script Test
sign Sign a package distribution file
uninstall Un-install Package
upgrade Upgrade Package
upgrade-all Upgrade All Packages

-Bennett
Gregory Beaver

2007-12-05, 4:15 am

Bennett Haselton wrote:
> At 06:36 AM 12/5/2007 +0100, Christian Weiske wrote:
>
> That command didn't work for me (output below). How do I get the
> version number?
>
> [root@D2585 ~]# pear version


try pear -V

Greg
Bennett Haselton

2007-12-05, 4:15 am

At 11:56 PM 12/4/2007 -0600, Gregory Beaver wrote:
>Bennett Haselton wrote:
> HTTP_Requ.ems <0880.0002>>
> remote
>
>try pear -V


That worked. I have version 1.3.2. So, I tried to upgrade. But when I
did that, I got the same error I got when I tried to install the
HTTP_Request module:

[root@D2585 ~]# pear -V
PEAR Version: 1.3.2
PHP Version: 4.3.9
Zend Engine Version: 1.3.0
Running on: Linux D2585.servadmin.com 2.6.9-42.ELsmp #1 SMP Sat Aug 12
09:39:11
CDT 2006 i686
[root@D2585 ~]# 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

bennett@peacefire.org http://www.peacefire.org
(425) 497 9002
Christian Weiske

2007-12-05, 8:03 am

Bennett Haselton

2007-12-05, 7:05 pm

At 01:31 PM 12/5/2007 +0100, Christian Weiske wrote:
>Hello Bennett,
>
>
>
>
>Try to download the packages manually, then do:
>
>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


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

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
[root@D2585 ~]#

-Bennett

bennett@peacefire.org http://www.peacefire.org
(425) 497 9002

Christian Weiske

2007-12-05, 7:05 pm

Gregory Beaver

2007-12-05, 10:05 pm

Bennett Haselton wrote:
> At 01:31 PM 12/5/2007 +0100, Christian Weiske wrote:
>
> 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
>
> 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
> [root@D2585 ~]#
>
> -Bennett


Bennett,

Your PEAR is using the CGI version of PHP. please add this line to php.ini:

register_argc_argv=1

It should start working after that.

Greg
Sponsored Links







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

Copyright 2008 codecomments.com