configure error when install on red hat
-
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 supportwhat' wrong is there?
my environment:redhat As4,mysql (64bit) .thank you for your help.
-
Try this:
LDFLAGS=-lm ./configure --with-server --with-mysql --with-agent -
thank Alex.It worked.
why is LDFLAGS=-lm needed?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better š
Register Login