licess 发表于 2011-1-28 14:55:03

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

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

make: Entering directory `/root/lnmp0.5-full/mysql-5.1.48'
make abi_headers="include/mysql/plugin.h include/mysql.h" do_abi_check
make: Entering directory `/root/lnmp0.5-full/mysql-5.1.48'
set -ex; \
.....省略部分
make: *** Error 127
make: Leaving directory `/root/lnmp0.5-full/mysql-5.1.48'
make: *** Error 2
make: Leaving directory `/root/lnmp0.5-full/mysql-5.1.48'
make: *** Error 1

网上看了一下是mysql的bug,mysql 5.1.14以上版本跟gcc 4.5不太兼容导致的,而且ubuntu上安装的就是gcc4.5

解决方法:
configure完成之后,编辑Makefile,查找do_abi_check: 将do_abi_check: 后到done 都删除,保存。再make && make install就ok了。
页: [1]
查看完整版本: ubuntu编译安装mysql错误do_abi_check的解决方法