問題
曾在DigitalOcean 512M VPS編譯Aria2時遇到下列的報錯:
{standard input}: Assembler messages: {standard input}:1907: Warning: end of file in string; '"' inserted g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-4.9/README.Bugs for instructions. Makefile:2291: recipe for target 'OptionHandlerFactory.lo' failed
解決方法
其後發現引起錯誤的原因是512MB Ram,需要更多的Ram以進行編譯
增加2G Swap即可解決問題
fallocate -l 2G /swapfile chmod 600 /swapfile mkswap /swapfile swapon /swapfile swapon -s #檢查Swap是否生效