Re: Failing to upgrade PEAR
| From: | bertrand Gugger | Date: | Thu, 22 Feb 2007 00:08:42 +0000 |
| Subject: | Re: Failing to upgrade PEAR | ||
| References: | 1 | Groups: | php.pear.general php.pear.general |
| Request: | Send a blank email to pear-general+get-26632@lists.php.net to get a copy of this message | ||
Peter Bradley wrote:
When 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 -- toggg