现在的位置: 首页 > 综合 > 正文

ubuntu安装mysql错误do_abi_check的解决方法

2013年02月01日 ⁄ 综合 ⁄ 共 819字 ⁄ 字号 评论关闭

执行configure无错误,在make的时候却报:

make[2]: *** [do_abi_check] 错误 1

make[2]: Leaving directory `/tmp/mysql-5.5.3-m3′

make[1]: *** [abi_check] 错误 2

make[1]: Leaving directory `/tmp/mysql-5.5.3-m3′

make: *** [all-recursive] 错误 1

居然是mysql的bug

解决方法:

在configure完成之后,用你喜欢的编辑器打开Makefile,即do_abi_check:目标后的所有语句。

删除红色部分

do_abi_check:
    set
-ex; \

    for file in $(abi_headers); do \

             gcc -E -nostdinc -dI \

                      -I$(top_srcdir)/include \

                      -I$(top_srcdir)/include/mysql \

                      -I$(top_srcdir)/sql \

                      -I$(top_builddir)/include \

                      -I$(top_builddir)/include/mysql \

                      -I$(top_builddir)/sql \

                                     $$file 2>/dev/null | \

                      /bin/sed -e '/^# /d' \

                                -e '/^[     ]*$$/d' \

                         

抱歉!评论已关闭.