Installation failed: gcc exited with exit code 4

Hi,

I tried to install Plone on ubuntu, but it failed. The log shows the following error:

Not found: /home/safarzadeh/Plone/buildout-cache/downloads/dist/lxml/
Not found: /home/safarzadeh/Plone/buildout-cache/downloads/dist/lxml/
Getting distribution for 'lxml==3.5.0'.
x86_64-linux-gnu-gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
/tmp/easy_install-NBRDti/lxml-3.5.0/temp/xmlXPathInitY8PYWd.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
main (int argc, char **argv) {
^
Building lxml version 3.5.0.
Building without Cython.
Using build configuration of libxslt 1.1.28
Compile failed: command 'x86_64-linux-gnu-gcc' failed with exit status 4
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 4
An error occurred when trying to install lxml 3.5.0. Look above this message for any errors that were output by easy_install.
While:
Installing instance.
Getting distribution for 'lxml==3.5.0'.
Error: Couldn't install: lxml 3.5.0


Can anyone sugget a solution for this problem?

Thanks.

Probably a memory problem?
see https://stackoverflow.com/questions/24455238/lxml-installation-error-ubuntu-14-04-internal-compiler-error

Thanks. Yes, it was a memory problem. I added a swap drive an the problem resolved.