I got a request today to setup Sphinx search on our cpanel dev server accounts. I succesfully setup sphinx on one dev server without any issues but on the second one while compiling I am getting
virtual memory exhausted: Cannot allocate memory
make[2]: *** [sphinx.o] Error 1
Upon searching, I got different options like increasing memory and stopping services like apache and mysql for the time being to install sphinx, but nothing helped to fix this. GCC is taking resources and throwing memory allocation issue. I even upgraded RAM from 8 to 12 GB and restarted the server but no luck.
I am following the instructions from this link
Can someone please help me?