Re: Upgrade to Pear 1.3.1

From: Date: Sat, 05 Jun 2004 22:58:07 +0000
Subject: Re: Upgrade to Pear 1.3.1
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12939@lists.php.net to get a copy of this message
On 5 Jun 2004 at 15:54, Meryl K Evans wrote: > I had an older version of Pear and had no problems installing new > packages via the pear install package_name command. I upgraded to the > new version of Pear because one of the packages required it. Now, I am > getting the following error whenever I try to install anything: > > Fatal error: Call to undefined function: getopt2() in > c:\php\pear\system.php on line 71. > > I did a Google and searched the archives for this list, but didn't > find a similar occurence. I found one, but it was in a foreign > language with no response. I am writing an ebook and it has a section > on Pear, so I am stuck. Would appreciate any help. It seems you upgraded PEAR but didn't upgrade the Console_Getopt- package as well. This was a problem in the past, unfortunately. Do I assume right that you have no way to use the installer anymore - so you can't upgrade Console_Getopt the usual way? If you feel confident enough, you might try upgrading Console_Getopt by hand (downloading, unpacking and putting the files in the right places). If you pear-installer then works as expected, do another upgrade of the package the usual way to keep the package-registry up- to-date. If you don't feel comfortable doing it "the hard way", you can run the go-pear-installer again, to fetch you a clean new pear-installer. This might include moving the old installer (and getopt etc.) away to another directory in the first place. This way should be least problematic for you. Good luck. If you need further help, feel free to ask again (on the list). Stefan

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