Re: Upgrade to Pear 1.3.1

From: Date: Sun, 06 Jun 2004 14:43:03 +0000
Subject: Re: Upgrade to Pear 1.3.1
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12943@lists.php.net to get a copy of this message
On Sat, 5 Jun 2004 15:54:50 -0500, Meryl K Evans <merylk@gmail.com> 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 have resolved the problem thanks to Stefan Neufeind's help. It wasn't an obvious solution. Console_Getopt wasn't upgraded and therefore, that's why it wouldn't work. To fix it, I manually downloaded <a href="http://pear.php.net/package/Console_Getopt">Console_Getopt</a>, deleted all instances of Console_Getopt (from the PEAR folder, go-pear-bundle folder, and Console folder), opened the Console_Getopt tar file, and copied its contents into the Console folder. Once having done that, "pear install package" works again. I asked Stefan why Console_Getopt wasn't addressed when I re-installed Pear's new version. Stefan believes that in some installer-versions "back in the early days" there were still problems with dependencies --- hmm, were they already in place? --- and so upgrading PEAR using the old installer didn't force you to also upgrade Console_Getopt. All up-to-date installers will alert you when something like this happens again, telling you that you also need to upgrade some of the other libraries. Best, Meryl meryl.net

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