专注各种脚本编程
Baidu
加入收藏夹
本站内容有下面分类知识,欢迎您的到来^_^
shell相关:指令篇 基础篇 脚本欣赏 编程实例 shell问问 shell视频教程 技巧篇 水平测试 E文资料 vi编辑器 高级Bash脚本编程指南
其他:mysql perl c语言 oracle
当前位置:| 主页>mysql>

安装mysql5.1时不能编译的问题解决

百度收藏 QQ搜藏
原文: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."
上一篇:myisam表优化optimize脚本 下一篇:重写mysql客户端提示符

power by soyo123 2007-2008