howto compile e text editor on ubuntu, virtualbox:
install ubuntu on a virtualbox guest.
Now we need to create some extra swap file (more RAM, basically).
create a new disk (say 2G) -- you'll probably want it fixed size.
add it as secondary master to the image (shutdown guest-> settings -> hard drives).
add it as swap now
sudo mkswap /dev/sdc
add in this line:
/dev/sdc none swap sw 0 0
check top to see the old swap size
check top -- your swap size should have increased considerly, now it should compile with default settings.