mysql 5.7.17 編譯報錯

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

一番后折騰 發(fā)現(xiàn)內(nèi)存不夠 swap分區(qū)也不夠

解決方案:

[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

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容