Re: pear.bat upgrade PEAR problems
| From: | Greg Beaver | Date: | Fri, 03 Feb 2006 01:00:06 +0000 |
| Subject: | Re: pear.bat upgrade PEAR problems | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22766@lists.php.net to get a copy of this message | ||
Andreas Adelsberger wrote:
> Greg Beaver schrieb:
>
>> Andreas Adelsberger wrote:
>>
>>
>>> WARNING: running in safe mode requires that all files created be the
>>> same uid as
>>> the current script. PHP reports this script is uid: 0, and current
>>> user is: an
>>> dreas
>>
>>
>>
>> Um, this is your problem. Remove safe_mode from php.ini and try again.
>> PEAR 1.4.7 will automatically disable safe_mode when running PEAR
>>
>> Greg
>
>
> I have already tried that, but still the same problem!
>
> C:\Programme\xampp\php>pear upgrade pear
> downloading PEAR-1.4.6.tgz ...
> Starting to download PEAR-1.4.6.tgz (277,103 bytes)
> .........................................................done: 277,103
> bytes
> Could not delete C:\Programme\xampp\php\pear.bat, cannot rename
> C:\Programme\xam
> pp\php\.tmppear.bat
> ERROR: commit failed
OK, next attempt:
restart apache with
apache -k restart
then try the upgrade, and if that doesn't work, try
apache -k stop
and try the upgrade. The problem is that something has locked your
pear.bat, and in my experience this is usually the web server. If you
use Zend IDE, also you will need to exit it prior to upgrade, as this
sometimes randomly locks the entire directory in which PEAR resides.
Greg
P.S. if apache isn't in the path, it should be somewhere in
C:\Programme\xampp like C:\Programme\xampp\apache