mysql libmysql.lo 安装问题
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果不是必须要求建议mysql最好是rpm安装,简单又方便