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

g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,

主要原因大体上是因为内存不足,有点坑 临时使用交换分区来解决吧

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

启动时swap分区自动启动:

echo "/swapfile swap swap defaults 0 0" >>/etc/fstab

[title]删除swap分区:[/title]

swapoff /swapfile
rm /swapfile

 

厂家CPU内存硬盘流量价格购买链接
RamNode11GB25GB-SSD500GB/mUSD $5购买
Linode11GB25GB-SSD1000GB/mUSD $5购买
DigitalOcean11GB25GB-SSD1000GB/mUSD $5/m购买
腾讯云Qcloud22GB50GB-SSD购买
Vultr11GB25GB-SSD1000GB/mUSD $5/m购买

Posted

in

by

Tags:

Comments

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注