mysql-5.6.39 源码编译安装报错
报错信息:
/tmp/ccV858jD.s: Assembler messages:
/tmp/ccV858jD.s: Fatal error: can't close CMakeFiles/sql_embedded.dir/__/sql/rpl_gtid_execution.cc.o: No space left on device
make[2]: *** [libmysqld/CMakeFiles/sql_embedded.dir/__/sql/rpl_gtid_execution.cc.o] Error 1
make[1]: *** [libmysqld/CMakeFiles/sql_embedded.dir/all] Error 2
原因是由于虚拟机的配置太低,之前是1核1G的配置,调整2核2G 后 重新编译编译通过
mysql-5.7 源码编译安装报错
collect2: error: ld returned 1 exit status
make[2]: *** [libmysqld/examples/mysql_client_test_embedded] Error 1
make[1]: *** [libmysqld/examples/CMakeFiles/mysql_client_test_embedded.dir/all] Error 2
make: *** [all] Error 2
解决:
在cmake编译参数中加入:-DWITH_EMBEDDED_SERVER=OFF