PHP installation problem

Hey Linux experts,

I am very new to Linux and PHP. I am trying to install php-5.3.2 on Linux(Centos), but I am getting an error as given below:

cc1: out of memory allocating 2036 bytes after a total of 63528960 bytes
make: *** [ext/date/lib/parse_date.lo] Error 1

What is exactly meant by this error?Can someone guide me over this and also tell me how to get rid of this error and install php successfully.Its very urgent.

Regards,

Mahesh

Is there a special reason why you're installing PHP from source, instead of using the version included with CentOS?

Other than that, an OOM error usually shouldn't occur, unless a process uses a lot of memory, and ~60M shouldn't be too much. Or the other processes already used up all the RAM and Swap space.

I have been given an assignment by my team leader. He told to install from php from source. Any way to eradicate this problem...

OK, could you give us some details? Memory / swap size, configure command line, ... anything that you think could have influenced it.

I used ,

,./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-gd --with-mysql

make

make install

I've tried to compile PHP 5.3.2 on an CentOS 5.4 x86_64 virtual machine, limiting the memory to 256MiB and turning off all swap space. I couldn't get your error. Please post all relevant details. Memory size, swap size, architecture, ulimits, versions, ...