Linux下安装Mysql总是报错
我的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,网上搜不到相似的情形,实在不知道该如何去做,还望前辈指点