Pear installer fatal error

This is a discussion on Pear installer fatal error within the PHP Language forums, part of the PHP Programming Forums category; Just upgraded php (5.0.3) - compiled from source. I'm trying to upgrade & install some Pear packages but ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-25-2005
Gonzalo
 
Posts: n/a
Default Pear installer fatal error

Just upgraded php (5.0.3) - compiled from source.

I'm trying to upgrade & install some Pear packages but get the following
error:

$ pear upgrade pear
downloading PEAR-1.3.5.tgz ...
Starting to download PEAR-1.3.5.tgz (108,423 bytes)
..........................done: 108,423 bytes
PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 32768 bytes) in /Library/PHP5/share/pear/Archive/Tar.php on line
1405

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 32768 bytes) in /Library/PHP5/share/pear/Archive/Tar.php on line
1405
Allowed memory size of 8388608 bytes exhausted (tried to allocate 0 bytes)

I'm not quite sure what the problem is I have used Pear before and never
seen this sort of problem.

All suggestions would be greatly appreciated.

G.

System info:
PEAR Version: 1.3.3
PHP Version: 5.0.3
Zend Engine Version: 2.0.3
Running on: Darwin g4.local 7.8.0 Darwin Kernel Version 7.8.0: Wed Dec 22
14:26:17 PST 2004; root:xnu/xnu-517.11.1.obj~1/RELEASE_PPC Power Macintosh


Reply With Quote
  #2 (permalink)  
Old 03-25-2005
Andy Hassall
 
Posts: n/a
Default Re: Pear installer fatal error

On Fri, 25 Mar 2005 15:03:25 +0000 (UTC), Gonzalo <perate@gmail.com> wrote:

>Just upgraded php (5.0.3) - compiled from source.
>
>I'm trying to upgrade & install some Pear packages but get the following
>error:
>
>$ pear upgrade pear
>downloading PEAR-1.3.5.tgz ...
>Starting to download PEAR-1.3.5.tgz (108,423 bytes)
>.........................done: 108,423 bytes
>PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
>allocate 32768 bytes) in /Library/PHP5/share/pear/Archive/Tar.php on line
>1405
>
>Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
>allocate 32768 bytes) in /Library/PHP5/share/pear/Archive/Tar.php on line
>1405
>Allowed memory size of 8388608 bytes exhausted (tried to allocate 0 bytes)
>
>I'm not quite sure what the problem is I have used Pear before and never
>seen this sort of problem.
>
>All suggestions would be greatly appreciated.


You've got PHP compiled with --enable-memory-limit, and the setting for
memory_limit in php.ini is 8M. PEAR apparently needs more memory than that to
install the package.

Increase the limit in php.ini temporarily.

--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Reply With Quote
  #3 (permalink)  
Old 03-25-2005
Gonzalo
 
Posts: n/a
Default Re: Pear installer fatal error

I thought that might be the problem, this is the configuration I used

../configure \
--prefix=/Library/PHP5 \
--with-apxs2=/Library/Apache2/bin/apxs \
--enable-memory-limit \
--with-layout=GNU \
--with-regex=php \
--with-pear \
--enable-exif \
--with-gd \
--enable-mbstring \
--with-mysql=/usr/local/mysql \
--with-openssl \
--enable-pcntl \
--with-pcre-regex=yes \
--enable-posix \
--with-readline \
--enable-session \
--enable-shmop \
--enable-sockets \
--enable-tokenizer \
--enable-xml \
--with-xmlrpc \
--enable-xslt \
--with-zlib \
--enable-simplexml \
--with-sqlite \
--enable-sqlite-utf8

I increased the memory to 12M on php.ini but the problem persists how much
more do you think I should need to put it? I've always runned php with 8M
memory limit and never encountered this problem..

Thanks again.


On 25/3/05 7:05 pm, in article 44o841dsqaq1ijuqj8j0v2parvdh46mid2@4ax.com,
"Andy Hassall" <andy@andyh.co.uk> wrote:

>
> You've got PHP compiled with --enable-memory-limit, and the setting for
> memory_limit in php.ini is 8M. PEAR apparently needs more memory than that to
> install the package.
>
> Increase the limit in php.ini temporarily.
>


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:57 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0