473,811 Members | 2,788 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4859
On Fri, 25 Mar 2005 15:03:25 +0000 (UTC), Gonzalo <pe****@gmail.c om> 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.andyhsoftwa re.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
6747
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", '/var/www/web576/html/includes/' . PATH_SEPARATOR .. ini_get("include_path"));
1
1956
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 PHP4 That could mean that pear is installed under the php4/ area, but not php5 ? go-pear prompted me to install a number of packages, including DB, which my webhost already has made available. If I do install DB using
0
1439
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 PEAR environment: /usr/local/lib/php/ Archive_Tar - already installed: 1.3.1 Console_Getopt - already installed: 1.2 Fatal error: Call to undefined method PEAR_Registry::packageinfo() in
0
2050
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 build our applications under three different environments (Linux i686, Linux x86_64, Solaris 8 Sparc). This is the first of the three on a RHEL 3 system using the current stable versions of the GNU toolchain in a segregated environment. Basically...
3
2359
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 Downloading package: Console_Getopt-stable....ok Downloading package: XML_RPC-stable....ok Downloading package: HTML_Template_IT-stable....ok Downloading package: Net_UserAgent_Detect-stable....ok
1
7843
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 included everything in case there is something there that's helpful. I'm trying to install PEAR so that I can use PHPUnit. Thanks for the help!!!!
2
6314
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 C:\php\PEAR\lib\MDB2.php on line 1921" My code is a simple submit processing form for a login page: <?php
3
3509
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 (DB::isError($db)) { die ("Can't connect: " . $db->getMessage()); }
5
4522
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 phar://go-pear.phar/PEAR/Start/CLI.php mmap cache can't open phar://go-pear.phar/PEAR/Start.php There are 20 of these lines. After continuing through the script, it dies with this error:
0
9734
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9607
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10663
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10401
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10138
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5704
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4357
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3029
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.