configure error when install on red hat

Started by yuyang0571, July 17, 2009, 10:20:42 AM

Previous topic - Next topic

yuyang0571

Hi,
when I run "sh ./configure  --with-server --with-mysql --with-agent",It stoped at
"checking for mysql_init in -lmysqlclient... no
configure: error: libmysqlclient is requred for MySQL support
"
and from config.log,
#cat config.log |grep libmysqlclient
/usr/lib64/mysql/libmysqlclient.a(libtaocrypt_la-dh.o)(.text+0x5c): In function `TaoCrypt::(anonymous namespace)::DiscreteLogWorkFactor(unsigned int)':
/usr/lib64/mysql/libmysqlclient.a(libtaocrypt_la-dh.o)(.text+0x74):/export/home/my/tmp-200906161149-5.1.36-18189/rpm/BUILD/mysql-5.1.36/extra/yassl/taocrypt/src/dh.cpp:39: undefined reference to `log'
/usr/lib64/mysql/libmysqlclient.a(libtaocrypt_la-dh.o)(.text+0x81):/export/home/my/tmp-200906161149-5.1.36-18189/rpm/BUILD/mysql-5.1.36/extra/yassl/taocrypt/src/dh.cpp:39: undefined reference to `pow'
/usr/lib64/mysql/libmysqlclient.a(libmysql.o)(.text+0x3e61): In function `fetch_float_with_conversion':
/usr/lib64/mysql/libmysqlclient.a(libmysql.o)(.text+0x3f4b):/export/home/my/tmp-200906161149-5.1.36-18189/rpm/BUILD/mysql-5.1.36/libmysql/libmysql.c:3747: undefined reference to `floor'
/usr/lib64/mysql/libmysqlclient.a(password.o)(.text+0x26d): In function `scramble_323':
/usr/lib64/mysql/libmysqlclient.a(password.o)(.text+0x295):/export/home/my/tmp-200906161149-5.1.36-18189/rpm/BUILD/mysql-5.1.36/libmysql/password.c:199: undefined reference to `floor'
/usr/lib64/mysql/libmysqlclient.a(password.o)(.text+0x35a): In function `check_scramble_323':
/usr/lib64/mysql/libmysqlclient.a(password.o)(.text+0x3bf):/export/home/my/tmp-200906161149-5.1.36-18189/rpm/BUILD/mysql-5.1.36/libmysql/password.c:242: more undefined references to `floor' follow
configure:28877: error: libmysqlclient is requred for MySQL support

what' wrong is there?
my environment:redhat As4,mysql (64bit) .

thank you for your help.

Alex Kirhenshtein

Try this:
LDFLAGS=-lm ./configure  --with-server --with-mysql --with-agent

yuyang0571