原文:http://blog.chinaunix.net/u2/67276/showart_695923.html mysql5.1必须在glibc 2.3及以上版本才能正常编译 glibc 2.2.5下安装mysql 5.1.24-rc编译(make)时遇错 GNU C Library stable release version 2.2.5 .............. gcc -DDEFAULT_BASEDIR=\"/usr/local/mysql51\" -DDATADIR="\"/usr/local/mysql51/var\"" -DDEFAULT_CHARSET_HOME="\"/usr/local/mysql51\"" -DSHAREDIR="\"/usr/local/mysql51/share/mysql\"" -DDEFAULT_HOME_ENV=MYSQL_HOME -DDEFAULT_GROUP_SUFFIX_ENV=MYSQL_GROUP_SUFFIX -DDEFAULT_SYSCONFDIR="\"/usr/local/mysql51/etc\"" -DHAVE_CONFIG_H -I. -I. -I../include -I../zlib -I../include -I../include -I. -O3 -DUNIV_LINUX -c my_sync.c my_sync.c: In function `my_sync_dir': my_sync.c:108: parse error before `dir_fd' my_sync.c:112: `correct_dir_name' undeclared (first use in this function) my_sync.c:112: (Each undeclared identifier is reported only once my_sync.c:112: for each function it appears in.) my_sync.c:117: `dir_fd' undeclared (first use in this function) my_sync.c:120: `res' undeclared (first use in this function) make[1]: *** [my_sync.o] Error 1 make[1]: Leaving directory `/usr/src/mysql-5.1.24-rc/mysys' make: *** [all-recursive] Error 1 换台suse机器suse10 2.6.16.21 glibc2.4 (GNU C Library development release version 2.4) 安装正常 上述mysql5.1.24-rc的"INSTALL-SOURCE"中说得比较清楚 2.1.1. Operating Systems Supported by MySQL Community Server ........... MySQL has been reported to compile successfully on the following combinations of operating system and thread package. .... * Linux, builds on all fairly recent Linux distributions with glibc 2.3. See Section 2.13.1, "Linux Notes." |