本人在Ubuntu10.04 编译安装mysql-6.0.0-alpha遇到了如下问题:执行
sudo make最后结果如下:问题1:
请教高手,以上错误该如何解决?问题2:
我在网上搜了很多天,就是没找 Ubuntu10.04 编译安装mysql-6.0.0-alpha 源代码 的博客和帖子,这是为什么???  谁有整理好的资料,谢谢!!

解决方案 »

  1.   


    从官网上下载的:
    http://downloads.mysql.com/archives.php但是这个链接上没有6.0的,奇怪的是出现了,前天我去这个网址发现还有版本6.0,大家可以看我的另一篇帖子:
    http://bbs.csdn.net/topics/390389852
      

  2.   


    我在include/my_global.h 文件中添加了,如下代码:
     /* Define some useful general macros */
    -#if !defined(max)
    -#define max(a, b) ((a) > (b) ? (a) : (b))
    -#define min(a, b) ((a) < (b) ? (a) : (b))
    +#if !defined(mysql_max)
    +#define mysql_max(a, b)      ((a) > (b) ? (a) : (b))
    +#define mysql_min(a, b)      ((a) < (b) ? (a) : (b))
    +static __inline long min( long a, long b ) { return ( ( a < b ) ? a : b ); }
    +static __inline long max( long a, long b ) { return ( ( a > b ) ? a : b ); }
     #endif
    再次编译, sudo make, 出现了如下错误:
    In file included from strxmov.c:33:
    ../include/my_global.h:1528: error: expected identifier or ‘(’ before ‘long’
    ../include/my_global.h:1528: error: expected ‘)’ before ‘<’ token
    ../include/my_global.h:1529: error: expected identifier or ‘(’ before ‘long’
    ../include/my_global.h:1529: error: expected ‘)’ before ‘>’ token
    请问如何解决???