数据库
首页 > 数据库> > ubuntu20.04 安装mysql8.0 报错

ubuntu20.04 安装mysql8.0 报错

作者:互联网

报错提示如下:

g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [sql/CMakeFiles/sql_gis.dir/build.make:414: sql/CMakeFiles/sql_gis. dir/gis/touches.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:10945: sql/CMakeFiles/sql_gis.dir/all] Error 2
make: *** [Makefile:163: all] Error 2

 

解决方案:

 

查了很多资料,最后发现主要原因是内存不足,g++编译时需要大量内存, 临时使用交换分区来解决吧

sudo dd if=/dev/zero of=/swapfile bs=64M count=16

sudo mkswap /swapfile

sudo swapon /swapfile

After compiling, you may wish to

Code:

sudo swapoff /swapfile

sudo rm /swapfile

 

标签:ubuntu20.04,CMakeFiles,swapfile,sudo,gis,Error,mysql8.0,sql,报错
来源: https://www.cnblogs.com/zols/p/16511229.html