473,322 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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
Jul 17 '05 #1
2 4837
On Fri, 25 Mar 2005 15:03:25 +0000 (UTC), Gonzalo <pe****@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 / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #2
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 44********************************@4ax.com,
"Andy Hassall" <an**@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.


Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Xaver Biton | last post by:
Hi, my internet provvider doesn' have support for pear and I tried the manual Installation as in the installation manual but when I call the script <?php ini_set("include_path",...
1
by: webguynow | last post by:
I've installed PEAR in my local area, on my shared host, under htdocs but I'm anticipating a number of issues. I'm forcing use of PHP5 with an .htaccess file, but by default the host runs ...
0
by: metin | last post by:
When I want to install php after the commands ../configure --with-apxs2=/www/bin/apxs --with-mysql and make without any error, when i type make install i have the following error: Installing...
0
by: bwhitehd | last post by:
I'm having a problem installing php. The compile seems to go fine, but when it gets to the install step I get the following errors. Does anyone have an idea of what might be the problem? We...
3
by: kelvin | last post by:
Can anyone tell me what could cause the error below? Starting installation ... Loading zlib: ok Downloading package: PEAR-stable......ok Downloading package: Archive_Tar-stable....ok...
1
by: CSTechie | last post by:
I've been battling to install PEAR on Windows XP now for too long. I am not sure what I need to do. When I run go-pear.php from the command line, I get the error message as shown at the end. I...
2
by: salvadorvp | last post by:
Hi, I have the following code that gives me this odd error message at a line of code inside the PEAR libraries: "Fatal error: Call to undefined function: MDB2_Driver_mssql::getMessage(). in...
3
by: mpar612 | last post by:
I am stumped. Below is my code and it doesn't work (I removed the $login info for posting). PHP Code: require 'PEAR/DB.php'; // Connect to the database $db = DB::connect($login); if...
5
by: Dan Fulbright | last post by:
I'm trying to install PHP 5.2.2 on Windows, but I keep getting errors when running go-pear.bat: mmap cache can't open phar://go-pear.phar/index.php mmap cache can't open...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.