Thanks, I managed to fix the issue by enabling swapYou are out of memory as far as how much space your router ram can allocate allowing the install process.
run the command
Code:free
and post the output.
should look something like this
Code:/tmp/home/root# free total used free shared buffers cached Mem: 903544 608292 295252 7536 8000 68312 -/+ buffers/cache: 531980 371564 Swap: 2097148 0 2097148