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

来源:互联网 发布:apache ant 1.8.4 bin 编辑:程序博客网 时间:2024/06/05 05:05

执行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' \
                                -e '/^#pragma GCC set_debug_pwd/d' \
                                -e '/^#ident/d' > \
                                           $(top_builddir)/abi_check.out; \
                      /usr/bin/diff -w $$file.pp $(top_builddir)/abi_check.out; \
                      /bin/rm $(top_builddir)/abi_check.out; \
    done