mysql libmysql.lo 安装问题

发布于 2022-09-22 12:30:41 字数 3443 浏览 14 评论 0

make 执行后报libmysql.lo错误,忘大虾指点一二,mysql学习如何开始?

[root@redhat-lab mysql]# make
make  all-recursive
make[1]: Entering directory `/usr/local/mysql'
Making all in .
make[2]: Entering directory `/usr/local/mysql'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/usr/local/mysql'
Making all in include
make[2]: Entering directory `/usr/local/mysql/include'
make  all-am
make[3]: Entering directory `/usr/local/mysql/include'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/local/mysql/include'
make[2]: Leaving directory `/usr/local/mysql/include'
Making all in Docs
make[2]: Entering directory `/usr/local/mysql/Docs'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/mysql/Docs'
Making all in readline
make[2]: Entering directory `/usr/local/mysql/readline'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/mysql/readline'
Making all in pstack
make[2]: Entering directory `/usr/local/mysql/pstack'
Making all in aout
make[3]: Entering directory `/usr/local/mysql/pstack/aout'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/mysql/pstack/aout'
make[3]: Entering directory `/usr/local/mysql/pstack'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/local/mysql/pstack'
make[2]: Leaving directory `/usr/local/mysql/pstack'
Making all in libmysql
make[2]: Entering directory `/usr/local/mysql/libmysql'
if /bin/sh ../libtool --preserve-dup-deps --mode=compile gcc -DDEFAULT_CHARSET_HOME="\"/usr/local\"" -DDATADIR="\"/usr/local/var\"" -DSHAREDIR="\"/usr/local/share/mysql\"" -DUNDEF_THREADS_HACK -DDONT_USE_RAID  -DMYSQL_CLIENT -I. -I. -I.. -I./../include -I../include -I./.. -I.. -I..     -O3 -DDBUG_OFF    -MT libmysql.lo -MD -MP -MF ".deps/libmysql.Tpo" -c -o libmysql.lo libmysql.c; \
        then mv -f ".deps/libmysql.Tpo" ".deps/libmysql.Plo"; else rm -f ".deps/libmysql.Tpo"; exit 1; fi
gcc -DDEFAULT_CHARSET_HOME=\"/usr/local\" -DDATADIR=\"/usr/local/var\" -DSHAREDIR=\"/usr/local/share/mysql\" -DUNDEF_THREADS_HACK -DDONT_USE_RAID -DMYSQL_CLIENT -I. -I. -I.. -I./../include -I../include -I./.. -I.. -I.. -O3 -DDBUG_OFF -MT libmysql.lo -MD -MP -MF .deps/libmysql.Tpo -c libmysql.c  -fPIC -DPIC -o .libs/libmysql.o
libmysql.c: In function 'mysql_real_connect':
libmysql.c:1862: warning: passing argument 5 of 'gethostbyname_r' from incompatible pointer type
libmysql.c:1862: error: too few arguments to function 'gethostbyname_r'
make[2]: *** [libmysql.lo] Error 1
make[2]: Leaving directory `/usr/local/mysql/libmysql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/mysql'
make: *** [all] Error 2
[root@redhat-lab mysql]# uname -a
Linux redhat-lab 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:12 EDT 2008 i686 i686 i386 GNU/Linux
[root@redhat-lab mysql]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.2 (Tikanga)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一桥轻雨一伞开 2022-09-29 12:30:41

如果不是必须要求建议mysql最好是rpm安装,简单又方便

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文