编译mysql出现的问题undefined reference to tgoto|tputs

部分编译参数为:
./configure \
–enable-assembler \
–with-mysqld-ldflags=”-all-static” \
–with-client-ldflags=”-all-static”
出现如下错误:
../cmd-line-utils/libedit/libedit.a(term.o): In function `term_echotc’:
term.c:(.text+0×1557): undefined reference to `tputs’
term.c:(.text+0×1580): undefined reference to `tgetstr’
term.c:(.text+0×1676): undefined reference to `tgoto’
term.c:(.text+0x169a): undefined reference to `tputs’
term.c:(.text+0×1761): undefined reference to `tgoto’
term.c:(.text+0×1781): undefined reference to `tputs’
解决方法:
./configure \
–enable-assembler \
–with-mysqld-ldflags=”-all-static” \
–with-client-ldflags=”-all-static -ltinfo”
在–with-client-ldflags增加 -ltinfo。

标签:MySQL 发布于:2019-11-23 16:03:14