Re: broken pear command
| From: | Pierre-Alain Joye | Date: | Tue, 06 Jan 2004 22:44:42 +0000 |
| Subject: | Re: broken pear command | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-10011@lists.php.net to get a copy of this message | ||
On Tue, 6 Jan 2004 15:13:28 -0600
"Robert L. Yelvington" <rly@cajunnetworks.net> wrote:
> Hi all,
>
> I just upgraded the PEAR package by running the command:
>
> pear upgrade PEAR
>
> at shell prompt.
>
> Now, when I try to upgrade or install new packages, I get:
>
> |-(~)# pear install Console_Getopt
> PHP Fatal error: Call to undefined function: getopt2() in
> /usr/local/lib/php/pearcmd.php on line 51
Which version of PEAR did you use before the upgrade?
> Is there a way to manually install pear whichout having to redo php?
>
> OR
>
> Is there a way to manually fix this error?
Get GetOpt.php from the cvs and replace the existing one.
(http://cvs.php.net/co.php/php-src/pear/Console/Getopt.php?login=2&r=1.
27)
hth
pierre