mysql编译报错解决办法之一

  1. 云栖社区>
  2. 博客>
  3. 正文

mysql编译报错解决办法之一

科技小先锋 2017-11-22 20:00:00 浏览1829
展开阅读全文

Linking CXX static library libbinlog.a
[ 73%] Built target binlog
[ 73%] Building CXX object sql/CMakeFiles/gen_lex_hash.dir/gen_lex_hash.cc.o
Linking CXX executable gen_lex_hash
[ 73%] Built target gen_lex_hash
Scanning dependencies of target master
[ 73%] Building CXX object sql/CMakeFiles/master.dir/rpl_master.cc.o
Linking CXX static library libmaster.a
[ 73%] Built target master
Scanning dependencies of target mysql_tzinfo_to_sql
[ 73%] Building CXX object sql/CMakeFiles/mysql_tzinfo_to_sql.dir/tztime.cc.o
Linking CXX executable mysql_tzinfo_to_sql
[ 73%] Built target mysql_tzinfo_to_sql
[ 73%] Generating sql_yacc.cc, sql_yacc.h
[ 73%] Generating lex_hash.h
[ 73%] Built target GenServerSource
[ 73%] Building CXX object sql/CMakeFiles/partition.dir/ha_partition.cc.o
Linking CXX static library libpartition.a
[ 73%] Built target partition
[ 73%] Building CXX object sql/CMakeFiles/sql.dir/sql_yacc.cc.o
c++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
make[2]: *** [sql/CMakeFiles/sql.dir/sql_yacc.cc.o] Error 1
make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
make: *** [all] Error 2
[root@localhost mysql-5.6.2-m5]#

================================================================

以上是报错信息,暂未找到解决办法

================================================

 

In function ‘void handle_connections_sockets()’:
error: invalid conversion from ‘size_socket*’ to ‘socklen_t*’
error: initializing argument 3 of ‘int accept(int, sockaddr*, socklen_t*)’
error: invalid conversion from ‘int*’ to ‘socklen_t*’
error: initializingargument 3 of ‘int getsockname(int, sockaddr*, socklen_t*)’
make[2]: *** [sql/CMakeFiles/sql.dir/mysqld.cc.o] 错误 1
make[1]: *** [sql/CMakeFiles/sql.dir/all] 错误 2
make: *** [all] 错误 2
这个是gcc的版本问题,
使用yum mysql-server后然后remove掉mysql-server

#yum install mysql-server

#yum remove  mysql-server

然后重新解压安装,上述错误没有。



本文转自it你好 51CTO博客,原文链接:http://blog.51cto.com/itnihao/830371,如需转载请自行联系原作者

网友评论

登录后评论
0/500
评论
科技小先锋
+ 关注