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

孤者浪人 提交于 2020-02-26 01:27:36

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

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!