Re: Problem of installation under FBSD

From: Date: Tue, 15 Nov 2005 20:22:23 +0000
Subject: Re: Problem of installation under FBSD
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21935@lists.php.net to get a copy of this message
Hi guys, Thanks for your answers. Unfortunately I didn't succeed. bertrand Gugger wrote:
Thierry Thomas wrote:
Selon bertrand Gugger <bertrand@toggg.com> :
Could you please try to add ini_set('memory_limit', '16M'); in the file patch-pear::scripts::pearcmd.php for lang/php4 and lang/php5. Such a patch will be committed soon.
I added this line in the patch file of lang/php5/files/patch-pear::scripts::pearcmd.php and recompile but this didn't fix the problem :s
Huh ? committed where ?
Committed in the FreeBSD ports tree (We were speaking about the FreeBSD port or pear).
In the mean time, your patch is OK. Or use peardev command (it has a no memory limit set) Or do: export PHP_PEAR_PHP_BIN='php -d memory_limit=16M'
Still the same problem ... # make install clean ===> Installing for pear-PEAR-1.4.4 ===> pear-PEAR-1.4.4 depends on file: /usr/local/share/pear/Archive/Tar.php - found ===> pear-PEAR-1.4.4 depends on file: /usr/local/share/pear/Console/Getopt.php - found ===> pear-PEAR-1.4.4 depends on file: /usr/local/share/pear/XML/RPC.php - found ===> Generating packing list ===> Generating temporary packing list ===> Checking if devel/pear-PEAR already installed ===> Installing scripts in /usr/local/bin. Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 23040 bytes) in /usr/local/share/pear/PEAR/PackageFile/v2.php on line 1962 *** Error code 255 Stop in /usr/ports/devel/pear-PEAR.
root@bep-pc1# echo $PHP_PEAR_PHP_BIN      php -d memory_limit=16M
But manually launch the v2.php script works fine (also with 8M): # php -d memory_limit=8M /usr/local/share/pear/PEAR/PackageFile/v2.php # php /usr/local/share/pear/PEAR/PackageFile/v2.php #grep memory_limit /usr/local/etc/php.ini
memory_limit = 32M      ; Maximum amount of memory a script may consume (8MB)
# I do not understand ? -- Arnaud de Prelle BEPolytech Server Admin eM@il: apn@bepolytech.be Web: http://bepolytech.be

« previous php.pear.general (#21935) next »