Add
{code} {code} == == * * _ _ [] * #

virtual memory exhausted: Cannot allocate memory

2012-10-24 00:59:06
virtual memory exhausted: Cannot allocate memory
export CFLAGS="-O0"
export MAKEOPTS="-j1"
export CXXFLAGS=$CFLAGS
./configure
make
Partially solved.
/bin/sh /usr/src/php-5.4.8/libtool --silent --preserve-dup-deps --mode=compile cc  -IZend/ -I/usr/src/php-5.4.8/Zend/ -DPHP_ATOM_INC -I/usr/src/php-5.4.8/include -I/usr/src/php-5.4.8/main -I/usr/src/php-5.4.8 -I/usr/src/php-5.4.8/ext/date/lib -I/usr/src/php-5.4.8/ext/ereg/regex -I/usr/local/include -I/usr/src/php-5.4.8/TSRM -I/usr/src/php-5.4.8/Zend    -I/usr/local/include -O0 -fvisibility=hidden  -c /usr/src/php-5.4.8/Zend/zend_execute.c -o Zend/zend_execute.lo

virtual memory exhausted: Cannot allocate memory

/usr/src/php-5.4.8/libtool: Cannot fork: Cannot allocate memory

*** Error code 2

Stop in /usr/src/php-5.4.8.

export CFLAGS='--param ggc-min-expand=0 --param ggc-min-heapsize=8192'
via http://www.lowendtalk.com/discussion/1300/php-fpm-on-vds6.net-freebsd Solved memory exhausting on VDS