内存不足引起的编译(make)错误

  • Post author:
  • Post category:其他


本人使用1G内存 1个核的CPU的虚拟主机源码安装mysql5.7时,使用make命令编译到50%多时遇到一个错误。

错误如下:


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


Please submit a full bug report,

with preprocessed source if appropriate.

See <http://bugzilla.redhat.com/bugzilla> for instructions.

make[2]: *** [sql/CMakeFiles/sql.dir/item_geofunc.cc.o] Error 4

make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2




make: *** [all] Error 2

解决办法:

增加虚拟内存,也就是增加swap。



版权声明:本文为qq_42030417原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。