- 论坛徽章:
- 0
|
操作系统:CentOS 5.2
MySQL该装的都装了,用的rpm包,如下:
[root@Mail2 cyrus-sasl-2.1.22]# rpm -qa | grep MySQL
MySQL-client-community-5.1.26-0.rhel5
MySQL-server-community-5.1.26-0.rhel5
MySQL-devel-community-5.1.26-0.rhel5
MySQL-shared-community-5.1.26-0.rhel5
[root@Mail2 cyrus-sasl-2.1.22]#
cyrus-sasl版本位2.1.22,编译:
./configure --disable-sample --disable-cram --disable-otp --disable-anon --enable-login --enable-plain --enable-sql --with-mysql=/usr/lib/mysql
然后查看config.log,发现如下错误:
configure:11787: result: no
configure:11796: WARNING: MySQL library mysqlclient does not work
configure:11838: WARNING: PostgreSQL Library not found
configure:11998: WARNING: SQLite Library not found
configure:12106: checking LDAPDB
configure:12446: result: disabled
configure:12525: checking for dmalloc library
configure:12567: result: no
configure:12573: checking for sfio library
configure:12641: result: no
configure:12657: checking for getsubopt
搜遍了google,只发现了一篇文章提出了解决办法,其它的都是提出问题,没有解答,文章在:http://archives.neohapsis.com/archives/postfix/2004-05/1171.html
按照这篇文章的方法做了修改configure,change the following lines (don't know the line #s).
> LIB_MYSQL="$LIB_MYSQL -lmysqlclient"
> LIBS="-lmysqlclient $LIB_MYSQL_DIR $LIBS"
>
> to:
> LIB_MYSQL="$LIB_MYSQL -lmysqlclient -lz"
> LIBS="-lmysqlclient -lz $LIB_MYSQL_DIR $LIBS"
重新编译,出现日期不对的提示,touch修改configure时间后虽然编译通过,但是错误依旧,请大家帮忙给看看到底是哪儿有问题
附件是完整的config.log,论坛不让上传txt或者log附件,故压缩了一下 |
|