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

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM