g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
查了很多资料,最后发现主要原因是内存不足,g++编译时需要大量内存, 临时使用交换分区来解决吧
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile
After compiling, you may wish to
Code:
sudo swapoff /swapfile
sudo rm /swapfile
via.http://ittony.blog.51cto.com/6242212/1687469