Pear installer fatal error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gonzalo

    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


  • Andy Hassall

    #2
    Re: Pear installer fatal error

    On Fri, 25 Mar 2005 15:03:25 +0000 (UTC), Gonzalo <perate@gmail.c om> 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.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool

    Comment

    • Gonzalo

      #3
      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 44o841dsqaq1iju qj8j0v2parvdh46 mid2@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]

      Comment

      Working...