Re: Repairing PEAR

From: Date: Mon, 12 Dec 2005 03:35:08 +0000
Subject: Re: Repairing PEAR
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-22203@lists.php.net to get a copy of this message
Jeff Moore wrote: > Hello, > > I seem to have broken my PEAR installation somehow. I'm getting: > > Fatal error: Cannot instantiate non-existent class: > pear_command_auth-init in /usr/lib/php/PEAR/Command.php on line 271 > > I think the last thing I did was upgrade the pear package to the latest > release. I didn't discover the problem until a few weeks later, so i'm > not entirely sure what I did. Any advise on repairing my PEAR > installation would be appreciated. Let me guess: you upgraded via a method other than "pear upgrade PEAR", i.e. a debian package/gentoo ebuild/Grunklix Nuggetdistro :) Regardless of the cause, you are suffering from 2 issues: 1) your PEAR/Command.php is actually from PEAR 1.3.6 or earlier (check the $Id$ tag, it should be $Id: Command.php,v 1.35 2005/11/01 05:39:23 cellog Exp $ 2) to fix this, run sudo rm /usr/lib/php/PEAR/Command/*-init.php sudo pear upgrade --force PEAR or as root s/sudo// or, if you're using PHP 5.1.0 or newer, simply: sudo rm -rf /usr/lib/php/.registry sudo make install-pear The best advice is to report a bug to the maintainer of the port, this is a problem that has crept up repeatedly and is out of our hands because I have no comprehension of why someone would try to mix up two completely incompatible versions of PEAR and then call it a good thing... Greg

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