Installation failed: gcc exited with exit code 4

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