在安装程序时g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report

g++: internal compiler error: Killed (program cc1plus)

Please submit a full bug report

问题原因是因为内存不足 使用交换分区来解决:

sudo dd if=/dev/zero of=/swapfile bs=64M count=16

#count的大小就是增加的swap空间的大小,64M是块大小,所以空间大小是bs*count=1024MB

sudo mkswap /swapfile

#把刚才空间格式化成swap格式

sudo swapon /swapfile

#使用刚才创建的swap空间

之后继续执行你的相关操作就可以了

*如果创建了临时空间之后仍提示“g++: internal compiler error: Killed (program cc1plus)”,可能是因为分配的空间不够大,可以继续分配更大的空间

After compiling, you may wish to shut the swap space down: 

sudo swapoff /swapfile

sudo rm /swapfile

猜你喜欢

转载自www.cnblogs.com/yangjiquan/p/11368262.html