The PEAR error may occur when not using the the *-dev version of the scripts, e.g. pear-dev install pecl/apc.

[2006-04-18 17:11 UTC] pfoubert at carat-hosting dot com

Hello
Thank for your answer. The pear error still here. So I've done a work around and installed it manually.
If I understand well you mean that I have to install it with this command ? pear-dev install pecl/apc
Because when I ran it with
peardev install pecl/apc
I have this error
===========================================================
downloading APC-3.0.10.tgz ...
Starting to download APC-3.0.10.tgz (85,818 bytes)
....................done: 85,818 bytes
35 source files, building
running: phpize
Configuring for:
PHP Api Version: 20020918
Zend Module Api No: 20020429
Zend Extension Api No: 20021010
Use mmap instead of shmget (usually a good idea) [yes] :
Use apxs to set compile flags (if using APC with Apache)? [yes] :
building in /var/tmp/pear-build-root/APC-3.0.10
running: /tmp/tmpo0k4jD/APC-3.0.10/configure --enable-apc-mmap=yes --with-apxs
sh: /tmp/tmpo0k4jD/APC-3.0.10/configure: /bin/sh: bad interpreter: Permission denied
ERROR: `/tmp/tmpo0k4jD/APC-3.0.10/configure --enable-apc-mmap=yes --with-apxs' failed
===========================================================
In fact my tmp dir is a partition with noexec option. Is there a way to run the configure and install elsewhere ?
Yet I have uninstalled APC. Since it was installed I had error in /var/log/http/error_log with huge segfault causing blank page to some clients. (the segfault is only when the cache memory is full).
I'll let my box running without APC few days to be sure I have no more these errors, then I^ll re-install it and see.
Thanks
Pascal

[2007-05-30 20:58 UTC] shunza at gmail dot com

Hello,
I got this error too.
When I install APC with pecl on X86_64,I do
# pecl install APC
It shows:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 23040 bytes) in /usr/share/pear/PEAR/PackageFile/v2.php on line 948
Allowed memory size of 8388608 bytes exhausted (tried to allocate 0 bytes)
====================
memory_limit in my php.ini already set to 64M
when I do it in a X86_32 system,it works well,why? This is a x86_64 bug ?

[2008-08-18 12:24 UTC] jason at draxjinn dot com

Adding the following line:
ini_set('memory_limit', '32M');
to the top of:
/usr/share/pear/pearcmd.php
Should fix the problem. (Add it right below the comments in the header....)

[2008-10-13 22:41 UTC] amcmillen at sliqua dot com

This issue is still occurring in CentOS 5...

[2009-07-12 23:44 UTC] trent at jp dot ibm dot com

This problem also happens on RHEL 5.3 X86_64 (i386 and PPC platforms were OK).
The pearcmd.php workaround works fine. Thanks!