解决编译错误:cc: Internal error: Killed (program cc1)
错误现象:
cc: Internal error: Killed (program cc1) ...
大体上是因为内存不足,临时使用交换分区来解决吧
sudo dd if=/dev/zero of=/swapfile bs=64M count=16 sudo mkswap /swapfile sudo swapon /swapfile
编译完成,可以取消交换分区:
sudo swapoff /swapfile sudo rm /swapfile