| View previous topic :: View next topic |
| Author |
Message |
Captain Paralytic
Joined: 15 Apr 2008 Posts: 5
|
Posted: Tue Apr 15, 2008 12:42 am Post subject: Memory size error on intsall of Spreadsheet_Excel_Writer |
|
|
I am trying to install the PEAR packageSpreadsheet_Excel_Writer using the
command:
pear install Spreadsheet_Excel_Writer
and I'm getting the error:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 35 bytes) in C:\wamp\php\PEAR\System.php on line 255
I've seen suggestions to use:
peardev install Spreadsheet_Excel_Writer
but that just seems to hang there.
Any suggestions please? |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1011
|
Posted: Tue Apr 15, 2008 9:13 am Post subject: |
|
|
| Increase the memory_limit setting in your php.ini and it will work. |
|
| Back to top |
|
 |
Captain Paralytic
Joined: 15 Apr 2008 Posts: 5
|
Posted: Tue Apr 15, 2008 10:54 am Post subject: |
|
|
| mark wrote: | | Increase the memory_limit setting in your php.ini and it will work. |
It is already set at 100M
According to what I have read, pear.bat ignores the php.ini file.
peardev.bat is supposed to honour it, but peardev just seems to hang. |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1011
|
Posted: Tue Apr 15, 2008 11:13 am Post subject: |
|
|
| Captain Paralytic wrote: | | mark wrote: | | Increase the memory_limit setting in your php.ini and it will work. |
It is already set at 100M
According to what I have read, pear.bat ignores the php.ini file. |
It does read it, but you have to edit the right php.ini file. "pear config-show" will tell you the current setting of the "php_ini" setting. If it is empty, the default php.ini that the configured "php_bin" PHP interpreter uses will be used. |
|
| Back to top |
|
 |
Captain Paralytic
Joined: 15 Apr 2008 Posts: 5
|
Posted: Tue Apr 15, 2008 11:25 am Post subject: |
|
|
| Cheers, I'll try it out |
|
| Back to top |
|
 |
Captain Paralytic
Joined: 15 Apr 2008 Posts: 5
|
Posted: Tue Apr 15, 2008 10:17 pm Post subject: |
|
|
I tried it and it stopped the memory size error. However it then behaved just like when I tried peardev. It just sat there. I left it for half an hour.
How long should it take to download and install?
Is there any way I can see what is happening? |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1011
|
Posted: Tue Apr 15, 2008 10:32 pm Post subject: |
|
|
| Captain Paralytic wrote: | | I tried it and it stopped the memory size error. However it then behaved just like when I tried peardev. |
Ah, indeed, peardev sets memory_limit to -1. Didn't knew about that.
| Captain Paralytic wrote: | It just sat there. I left it for half an hour.
How long should it take to download and install? |
Half an hour is too long, you should get at least some output in very short time (less than half a minute and that would already be long).
| Captain Paralytic wrote: | | Is there any way I can see what is happening? |
pear help options => pear -v ... |
|
| Back to top |
|
 |
Captain Paralytic
Joined: 15 Apr 2008 Posts: 5
|
Posted: Tue Apr 15, 2008 11:56 pm Post subject: |
|
|
I had already tried that, got no output at all. When I press break I get
C:\wamp\php>pear -v install Spreadsheet_Excel_Writer
Error in my_thread_global_end(): 2 threads didn't exit
^CTerminate batch job (Y/N)? |
|
| Back to top |
|
 |
|