Re: Failing to upgrade PEAR
| From: | Peter Bradley | Date: | Thu, 22 Feb 2007 18:09:37 +0000 |
| Subject: | Re: Failing to upgrade PEAR | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26645@lists.php.net to get a copy of this message | ||
Ysgrifennodd bertrand Gugger:
Peter Bradley wrote:Thank you. PeterWhen I try to upgrade PEAR, I get the following error: linux:~ # pear upgrade PEAR downloading PEAR-1.5.0.tar ... Starting to download PEAR-1.5.0.tar (-1 bytes) ................................................................................................................................................................................................................................done: 1,783,808 bytes PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 87480 bytes) in /usr/share/php/PEAR/PackageFile/Generator/v2.php on line 293 PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 100 bytes) in /usr/share/php/PEAR.php on line 765 *** glibc detected *** double free or corruption (fasttop): 0x000000000109afe0 *** Aborted (or variations on it with different numbers of bytes to be allocated). My current PEAR version is 1.4.11 Running on: Linux linux 2.6.13-15.13-smp #1 SMP Tue Nov 28 13:43:50 UTC 2006 x86_64 Is this a problem with PEAR or a problem with me?No, it's just that the installer needs more memory, you run with default 8M ... As chuck tells you could increase it in php.ini but it's not necessary you can run as PHP_PEAR_PHP_BIN='php -d memory_limit="-1"';pear upgrade PEAR or simpler: peardev upgrade PEAR peardev is the same command as pear but has unlimited memory I think I missed chuck's reply. Apologies for that: but I did the "peardev upgrade PEAR" and all was well.