Connecting Tech Pros Worldwide Help | Site Map

Pear installer fatal error

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 12:17 PM
Gonzalo
Guest
 
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



  #2  
Old July 17th, 2005, 12:17 PM
Andy Hassall
Guest
 
Posts: n/a
Default Re: Pear installer fatal error

On Fri, 25 Mar 2005 15:03:25 +0000 (UTC), Gonzalo <perate@gmail.com> wrote:
[color=blue]
>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.[/color]

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
  #3  
Old July 17th, 2005, 12:17 PM
Gonzalo
Guest
 
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:
[color=blue]
>
> 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.
>[/color]

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.