欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

安装数据库时报错gmake[2]: *** [CMakeFiles/tdcore.dir/td/********/MessagesManager.cpp.o] Error 4 gmake[1]: **

程序员文章站 2022-06-06 16:50:11
...
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.
gmake[2]: *** [CMakeFiles/tdcore.dir/td/********/MessagesManager.cpp.o] Error 4
gmake[1]: *** [CMakeFiles/tdcore.dir/all] Error 2
gmake: *** [all] Error 2

原因是内存不够,并且没swap,增加swap

[[email protected] build]# dd if=/dev/zero of=/var/swap.img bs=1024k count=1000
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB) copied, 2.34565 s, 447 MB/s
[[email protected] build]# free -m
              total        used        free      shared  buff/cache   available
Mem:           3790         101        2546           0        1142        3454
Swap:             0           0           0
[[email protected] build]# mkswap /var/swap.img
Setting up swapspace version 1, size = 1023996 KiB
no label, UUID=99a90e95-ee16-45f7-801d-71378b1a7551
[[email protected] build]# swapon /var/swap.img
相关标签: Mysql数据库