Hi there,
I was trying to upgrade/install the PEAR modules in my PHP installation, and something seems to have gone wrong. I'm wondering if anyone can help me get this figured out.
Here's the whole story...
The commands I was using were:
pear install [PACKAGE_SUBPACKAGE]
pear upgrade [PACKAGE_SUBPACKAGE]
The first sign of trouble was when it stopped recognizing those
commands and for some reason would only work when I would put the word "help" in between "pear" and "install" or "upgrade". Bizarre, right? Dunno what that was about...
Anyway, it seemed to be working despite the bizarreness, so I continued. I wanted to make sure I had all the functionality I needed, so I typed:
pear help upgrade PEAR (again, I know the "help" part is weird, but it wasn't working without it)
The installer retrieved and installed a bunch of directories and files, seemingly successfully.
But now, whenever I try to upgrade or install any other packages, I get the following error:
Fatal error: Call to undefined function: getoptions() in /usr/local/bin/pear on line 34
The libs still seem to be there, but the command line interface for installing and upgrading them is totally out of commission. Does this make any sense to anyone? Any ideas about how I might fix it?
Thanks in advance for any advice or suggestions.
Adam