说明:mysql5.7.22的编译安装需要GCC4.4或者更高版本,但是SuSE11默认版本为4.3.4,查看GCC当前版本如下:
kingtry:~ # /lib/libc.so.6 GNU C Library stable release version 2.11.3 (20110527), by Roland McGrath et al. Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Configured for i686-suse-linux. Compiled by GNU CC version 4.3.4 [gcc-4_3-branch revision 152973]. Compiled on a Linux 2.6.32 system on 2013-05-10. Available extensions: crypt add-on version 2.1 by Michael Glad and others GNU Libidn by Simon Josefsson NoVersion patch for broken glibc 2.0 binaries Native POSIX Threads Library by Ulrich Drepper et al BIND-8.2.3-T5B For bug reporting instructions, please see: <http://www.gnu.org/software/libc/bugs.html>.
如果需要在SuSE11上安装MySQL5.7.22版本,参考方法如下:
1、安装二进制版本的安装包
参见:SuSE11安装MySQL5.7.22:二进制安装方式、单实例
2、安装RPM版本的安装包
参见:SuSE11安装MySQL5.7.22:RPM安装方式
3、升级系统GCC版本,然后再编译安装