I just thought I would share the solution to this error through my VPS Ubuntu instance I had. The issue was due to lack of ram. Increasing the ram from 512 to 1GB the problem went away.
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report
I used digital ocean for my VPS. They have a good deal right now where you get a $10.00 credit for signing up. Click here.