Linux下安装Mysql总是报错

v_李大仁_v 2014-12-02 10:26:19
我的Linux版本是Ubuntu 14.04.1 LTS

执行到make步骤时,总是报错,报错信息如下:

readline.c:(.text+0x2bd3): warning: Using 'getpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
../cmd-line-utils/libedit/libedit.a(filecomplete.o): In function `fn_tilde_expand':
filecomplete.c:(.text+0x114): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
filecomplete.c:(.text+0x84): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
../cmd-line-utils/libedit/libedit.a(readline.o): In function `username_completion_function':
readline.c:(.text+0x2bff): warning: Using 'setpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
readline.c:(.text+0x2be1): warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
../libmysql/.libs/libmysqlclient.a(my_net.o): In function `my_gethostbyname_r':
my_net.c:(.text+0x2e): warning: Using 'gethostbyname_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
../libmysql/.libs/libmysqlclient.a(libmysql.o): In function `mysql_server_init':
libmysql.c:(.text+0x2a75): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
../cmd-line-utils/libedit/libedit.a(term.o): In function `term_move_to_char':
term.c:(.text+0x905): undefined reference to `tgoto'
term.c:(.text+0x91f): undefined reference to `tputs'
term.c:(.text+0x92c): undefined reference to `tgoto'
term.c:(.text+0x947): undefined reference to `tputs'
../cmd-line-utils/libedit/libedit.a(term.o): In function `term_move_to_line':
term.c:(.text+0xafd): undefined reference to `tgoto'
term.c:(.text+0xb17): undefined reference to `tputs'
term.c:(.text+0xc1e): undefined reference to `tgoto'
term.c:(.text+0xc39): undefined reference to `tputs'
term.c:(.text+0xca4): undefined reference to `tputs'
../cmd-line-utils/libedit/libedit.a(term.o): In function `term_deletechars':
term.c:(.text+0xe8c): undefined reference to `tputs'
term.c:(.text+0xecd): undefined reference to `tputs'
term.c:(.text+0xf25): undefined reference to `tgoto'
../cmd-line-utils/libedit/libedit.a(term.o): In function `term_insertwrite':
term.c:(.text+0x1032): undefined reference to `tputs'
term.c:(.text+0x105e): undefined reference to `tgoto'
term.c:(.text+0x1079): undefined reference to `tputs'
term.c:(.text+0x1146): undefined reference to `tputs'
term.c:(.text+0x1166): undefined reference to `tputs'
term.c:(.text+0x11c1): undefined reference to `tputs'
term.c:(.text+0x11e6): undefined reference to `tputs'
../cmd-line-utils/libedit/libedit.a(term.o):term.c:(.text+0x12fb): more undefined references to `tputs' follow
../cmd-line-utils/libedit/libedit.a(term.o): In function `term_set':
term.c:(.text+0x1d47): undefined reference to `tgetent'
term.c:(.text+0x1d63): undefined reference to `tgetflag'
term.c:(.text+0x1d77): undefined reference to `tgetflag'
term.c:(.text+0x1d8b): undefined reference to `tgetflag'
term.c:(.text+0x1d9f): undefined reference to `tgetflag'
term.c:(.text+0x1db3): undefined reference to `tgetflag'
../cmd-line-utils/libedit/libedit.a(term.o):term.c:(.text+0x1dc7): more undefined references to `tgetflag' follow
../cmd-line-utils/libedit/libedit.a(term.o): In function `term_set':
term.c:(.text+0x1ddb): undefined reference to `tgetnum'
term.c:(.text+0x1def): undefined reference to `tgetnum'
term.c:(.text+0x1e11): undefined reference to `tgetstr'
../cmd-line-utils/libedit/libedit.a(term.o): In function `term_echotc':
term.c:(.text+0x2ca6): undefined reference to `tgetstr'
term.c:(.text+0x2dc0): undefined reference to `tgoto'
term.c:(.text+0x2de0): undefined reference to `tputs'
term.c:(.text+0x2e71): undefined reference to `tgoto'
term.c:(.text+0x2e8e): undefined reference to `tputs'
term.c:(.text+0x2eb3): undefined reference to `tputs'
../cmd-line-utils/libedit/libedit.a(term.o): In function `term_deletechars':
term.c:(.text+0xf07): undefined reference to `tputs'
term.c:(.text+0xf45): undefined reference to `tputs'
../cmd-line-utils/libedit/libedit.a(term.o): In function `term_clear_EOL':
term.c:(.text+0x1279): undefined reference to `tputs'
../cmd-line-utils/libedit/libedit.a(term.o):term.c:(.text+0x1326): more undefined references to `tputs' follow
collect2: error: ld returned 1 exit status
make[2]: *** [mysql] Error 1
make[2]: Leaving directory `/home/ubuntu/usr/local/src/mysql/mysql-5.0.95/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ubuntu/usr/local/src/mysql/mysql-5.0.95'
make: *** [all] Error 2

由于刚接触Linux下安装mysql,网上搜不到相似的情形,实在不知道该如何去做,还望前辈指点
...全文
530 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
voritoychen 2015-01-16
  • 打赏
  • 举报
回复
ncurses 楼主安装了吗 我安装了也不行
voritoychen 2015-01-16
  • 打赏
  • 举报
回复
我和你的错是 一样一样的,求大神指教啊
pony520 2014-12-05
  • 打赏
  • 举报
回复
你新手的话,还是下一下二进制的安装一下,步骤简单一点!
zhu19774279 2014-12-02
  • 打赏
  • 举报
回复
不编译源码,deb的包能装吗

56,678

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧