nananaminer i doubt that 2GB RAM is problem.... all my machines on mining got 2GB RAM and when manually compiled script, worked....this is any bug in BASH
It's definitely a 'out of memory' error. I've tested and used the bash script multiple times without any issue.
This is your error "
internal compiler error: Killed (program cclplus)",
Check every link here
https://www.google.com/search?q=internal+compiler+error%3A+Killed+(program+cclplus) , they all point to memory issue.
But if it's working if you compile it manually, maybe the 'make -j4' command is running on more threads than the cpu cores you have.
You can try editing the script [Line 44] to change it to just '
sudo make' instead of 'sudo make -j4'.