美文网首页
mysql 5.7.17 编译报错

mysql 5.7.17 编译报错

作者: 豆芽_yw | 来源:发表于2019-05-30 15:03 被阅读0次

make[2]: *** [unittest/gunit/CMakeFiles/merge_small_tests-t.dir/merge_small_tests.cc.o] Error 4
make[1]: *** [unittest/gunit/CMakeFiles/merge_small_tests-t.dir/all] Error 2
make: *** [all] Error 2

make过程中报以下错误!!!

[ 75%] Building CXX object sql/CMakeFiles/sqlgunitlib.dir/filesort_utils.cc.o
[ 75%] Building CXX object sql/CMakeFiles/sqlgunitlib.dir/mdl.cc.o
[ 75%] Building CXX object sql/CMakeFiles/sqlgunitlib.dir/sql_list.cc.o
[ 75%] Building CXX object sql/CMakeFiles/sqlgunitlib.dir/__/sql-common/sql_string.cc.o
[ 75%] Building CXX object sql/CMakeFiles/sqlgunitlib.dir/thr_malloc.cc.o
Linking CXX static library ../archive_output_directory/libsqlgunitlib.a
[ 75%] Built target sqlgunitlib
Scanning dependencies of target merge_small_tests-t
[ 75%] Building CXX object unittest/gunit/CMakeFiles/merge_small_tests-t.dir/merge_small_tests.cc.o
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]: *** [unittest/gunit/CMakeFiles/merge_small_tests-t.dir/merge_small_tests.cc.o] Error 4
make[1]: *** [unittest/gunit/CMakeFiles/merge_small_tests-t.dir/all] Error 2
make: *** [all] Error 2

一番后折腾 发现内存不够 swap分区也不够

解决方案:

[root@VM_0_7_centos mysql-5.7.26]# dd if=/dev/zero of=/swapfile bs=1k count=2048000
[root@VM_0_7_centos mysql-5.7.26]# mkswap /swapfile
[root@VM_0_7_centos mysql-5.7.26]# swapon /swapfile

相关文章

网友评论

      本文标题:mysql 5.7.17 编译报错

      本文链接:https://www.haomeiwen.com/subject/nfcvtctx.html