msyql 5.7.21 [ 35%] Building CXX object sql/CMakeFiles/sql.dir/item_row.
虚拟机内存 1G,在安装 MySQL 5.7.21 执行 make的时候出现如下,在35%到36%的时候就走不动,
[ 35%] Building CXX object sql/CMakeFiles/sql.dir/item_row.cc.o
[ 35%] Building CXX object sql/CMakeFiles/sql.dir/item_strfunc.cc.o
[ 35%] Building CXX object sql/CMakeFiles/sql.dir/item_subselect.cc.o
[ 35%] Building CXX object sql/CMakeFiles/sql.dir/item_sum.cc.o
[ 35%] Building CXX object sql/CMakeFiles/sql.dir/item_timefunc.cc.o
[ 35%] Building CXX object sql/CMakeFiles/sql.dir/item_xmlfunc.cc.o
[ 35%] Building CXX object sql/CMakeFiles/sql.dir/item_inetfunc.cc.o
[ 35%] Building CXX object sql/CMakeFiles/sql.dir/json_dom.cc.o
[ 35%] Building CXX object sql/CMakeFiles/sql.dir/json_binary.cc.o
[ 35%] Building CXX object sql/CMakeFiles/sql.dir/json_path.cc.o
[ 35%] Building CXX object sql/CMakeFiles/sql.dir/key.cc .o
[ 35%] Building CXX object sql/CMakeFiles/sql.dir/keycaches.cc.o
[ 35%] Building CXX object sql/CMakeFiles/sql.dir/lock.cc.o
[ 35%] Building CXX object sql/CMakeFiles/sql.dir/locking_service.cc.o
[ 35%] Building CXX object sql/CMakeFiles/sql.dir/log.cc.o
解决办法:增加虚拟机内存到4G,调整后的效果如图: