免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2231 | 回复: 1
打印 上一主题 下一主题

mysql libmysql.lo 安装问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-10-16 21:07 |只看该作者 |倒序浏览
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)

论坛徽章:
4
白银圣斗士
日期:2015-11-24 10:40:40技术图书徽章
日期:2015-11-26 13:47:47平安夜徽章
日期:2015-12-26 00:06:30技术图书徽章
日期:2016-07-19 13:54:03
2 [报告]
发表于 2008-10-16 22:10 |只看该作者
如果不是必须要求建议mysql最好是rpm安装,简单又方便
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP