ChiefHYK 发表于 2016-5-30 10:36:56

debian 8 64bit安装mysql失败

============================== Check install ==============================
Checking ...
Nginx: OK
Error: MySQL install failed.
PHP: OK
PHP-FPM: OK
Sorry,Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.

============================== Check install ==============================


[ 98%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/__/sql/sql_yacc.cc.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
libmysqld/CMakeFiles/sql_embedded.dir/build.make:3021: recipe for target 'libmysqld/CMakeFiles/sql_embedded.dir/__/sql/sql_yacc.cc.o' failed
make: *** Error 4
CMakeFiles/Makefile2:4515: recipe for target 'libmysqld/CMakeFiles/sql_embedded.dir/all' failed
make: *** Error 2
Makefile:147: recipe for target 'all' failed
make: *** Error 2
include/mysql.sh: line 115: /usr/local/mysql/scripts/mysql_install_db: No such file or directory
chown: cannot access ‘/usr/local/mysql/var’: No such file or directory
chgrp: cannot access ‘/usr/local/mysql/.’: No such file or directory
Starting mysql (via systemctl): mysql.serviceFailed to start mysql.service: Unit mysql.service failed to load: No such file or directory.
failed!
include/mysql.sh: line 30: /usr/local/mysql/bin/mysqladmin: No such file or directory
include/mysql.sh: line 42: /usr/local/mysql/bin/mysql: No such file or directory
Restarting mysql (via systemctl): mysql.serviceFailed to restart mysql.service: Unit mysql.service failed to load: No such file or directory.
failed!
Stopping mysql (via systemctl): mysql.serviceFailed to stop mysql.service: Unit mysql.service not loaded.
failed!

licess 发表于 2016-5-30 13:56:16

[ 98%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/__/sql/sql_yacc.cc.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
内存不够导致的

ChiefHYK 发表于 2016-5-30 14:46:12

请问除了增加内存还有其他解决办法吗?

licess 发表于 2016-5-30 21:02:09

xen或kvm的话可以增加swap试试

也可以安装mysql 5.1试试

ChiefHYK 发表于 2016-6-1 13:55:21

好的,我去试试看,十分感谢!

ChiefHYK 发表于 2016-6-1 16:28:46

改成32位系统安装成功:victory:
页: [1]
查看完整版本: debian 8 64bit安装mysql失败