在 ubuntu oneiric 上编译 mysql 时出现问题

发布于 2024-12-16 18:17:50 字数 2344 浏览 1 评论 0原文

我正在尝试在 ubuntu oneiric 上编译 mysql 5.1.60。我不确定为什么它不能正确编译。我使用捆绑的 libedit/libreadline 收到此错误。我尝试过使用系统库,但也遇到错误。

编辑:尝试编译其他版本的 mysql,我得到了同样的结果。我猜这是 oneiric ubuntu 的变化?

../cmd-line-utils/libedit/libedit.a(terminal.o): In function `terminal_deletechars':
terminal.c:(.text+0x755): undefined reference to `tgoto'
../cmd-line-utils/libedit/libedit.a(terminal.o): In function `terminal_set':
terminal.c:(.text+0x1033): undefined reference to `tgetent'
terminal.c:(.text+0x104f): undefined reference to `tgetflag'
terminal.c:(.text+0x1064): undefined reference to `tgetflag'
terminal.c:(.text+0x1079): undefined reference to `tgetflag'
terminal.c:(.text+0x108e): undefined reference to `tgetflag'
terminal.c:(.text+0x10a3): undefined reference to `tgetflag'
../cmd-line-utils/libedit/libedit.a(terminal.o):terminal.c:(.text+0x10b8): more undefined references to `tgetflag' follow
../cmd-line-utils/libedit/libedit.a(terminal.o): In function `terminal_set':
terminal.c:(.text+0x10cd): undefined reference to `tgetnum'
terminal.c:(.text+0x10e2): undefined reference to `tgetnum'
terminal.c:(.text+0x110c): undefined reference to `tgetstr'
../cmd-line-utils/libedit/libedit.a(terminal.o): In function `terminal_insertwrite':
terminal.c:(.text+0x18cf): undefined reference to `tgoto'
../cmd-line-utils/libedit/libedit.a(terminal.o): In function `terminal_move_to_char':
terminal.c:(.text+0x1b65): undefined reference to `tgoto'
terminal.c:(.text+0x1b80): undefined reference to `tgoto'
../cmd-line-utils/libedit/libedit.a(terminal.o): In function `terminal_move_to_line':
terminal.c:(.text+0x1cd5): undefined reference to `tgoto'
terminal.c:(.text+0x1d14): undefined reference to `tgoto'
../cmd-line-utils/libedit/libedit.a(terminal.o): In function `terminal_echotc':
terminal.c:(.text+0x288b): undefined reference to `tgetstr'
terminal.c:(.text+0x29a7): undefined reference to `tgoto'
terminal.c:(.text+0x29ca): undefined reference to `tgoto'
../cmd-line-utils/libedit/libedit.a(terminal.o): In function `terminal_tputs.isra.1':
terminal.c:(.text+0x535): undefined reference to `tputs'
collect2: ld returned 1 exit status
make[2]: *** [mysql] Error 1
make[2]: Leaving directory `/root/mysql-5.1.60/client'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/mysql-5.1.60/client'
make: *** [all-recursive] Error 1

I'm trying to compile mysql 5.1.60 on ubuntu oneiric. I'm not sure why its not compiling properly. I get this error using the bundled libedit/libreadline. Ive tried using the system libraries and I get errors with that as well.

EDIT: Tried compiling other versions of mysql and I get the same thing. I'm guessing its a change in oneiric ubuntu?

../cmd-line-utils/libedit/libedit.a(terminal.o): In function `terminal_deletechars':
terminal.c:(.text+0x755): undefined reference to `tgoto'
../cmd-line-utils/libedit/libedit.a(terminal.o): In function `terminal_set':
terminal.c:(.text+0x1033): undefined reference to `tgetent'
terminal.c:(.text+0x104f): undefined reference to `tgetflag'
terminal.c:(.text+0x1064): undefined reference to `tgetflag'
terminal.c:(.text+0x1079): undefined reference to `tgetflag'
terminal.c:(.text+0x108e): undefined reference to `tgetflag'
terminal.c:(.text+0x10a3): undefined reference to `tgetflag'
../cmd-line-utils/libedit/libedit.a(terminal.o):terminal.c:(.text+0x10b8): more undefined references to `tgetflag' follow
../cmd-line-utils/libedit/libedit.a(terminal.o): In function `terminal_set':
terminal.c:(.text+0x10cd): undefined reference to `tgetnum'
terminal.c:(.text+0x10e2): undefined reference to `tgetnum'
terminal.c:(.text+0x110c): undefined reference to `tgetstr'
../cmd-line-utils/libedit/libedit.a(terminal.o): In function `terminal_insertwrite':
terminal.c:(.text+0x18cf): undefined reference to `tgoto'
../cmd-line-utils/libedit/libedit.a(terminal.o): In function `terminal_move_to_char':
terminal.c:(.text+0x1b65): undefined reference to `tgoto'
terminal.c:(.text+0x1b80): undefined reference to `tgoto'
../cmd-line-utils/libedit/libedit.a(terminal.o): In function `terminal_move_to_line':
terminal.c:(.text+0x1cd5): undefined reference to `tgoto'
terminal.c:(.text+0x1d14): undefined reference to `tgoto'
../cmd-line-utils/libedit/libedit.a(terminal.o): In function `terminal_echotc':
terminal.c:(.text+0x288b): undefined reference to `tgetstr'
terminal.c:(.text+0x29a7): undefined reference to `tgoto'
terminal.c:(.text+0x29ca): undefined reference to `tgoto'
../cmd-line-utils/libedit/libedit.a(terminal.o): In function `terminal_tputs.isra.1':
terminal.c:(.text+0x535): undefined reference to `tputs'
collect2: ld returned 1 exit status
make[2]: *** [mysql] Error 1
make[2]: Leaving directory `/root/mysql-5.1.60/client'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/mysql-5.1.60/client'
make: *** [all-recursive] Error 1

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦在深巷 2024-12-23 18:17:50

如果有可用的软件包,为什么要为 Oneiric 编译 MySQL 5.1?

$ apt-cache search mysql 5.1
[...]
mysql-client-5.1 - MySQL database client binaries
mysql-client-core-5.1 - MySQL database core client binaries
mysql-server-5.1 - MySQL database server binaries and system database setup
mysql-server-core-5.1 - MySQL database server binaries
[...]

如果您确实想编译它,我建议查看这些包的构建脚本(您可以通过执行 apt-get source mysql-5.1 找到它们,并在 debian 中查找/rules 以及 debian/ 子目录的其余部分)

Why are you compiling MySQL 5.1 for Oneiric, if packages are available?

$ apt-cache search mysql 5.1
[...]
mysql-client-5.1 - MySQL database client binaries
mysql-client-core-5.1 - MySQL database core client binaries
mysql-server-5.1 - MySQL database server binaries and system database setup
mysql-server-core-5.1 - MySQL database server binaries
[...]

If you really do want to compile it, I'd suggest looking at the build scripts for those packages (you can find them by doing apt-get source mysql-5.1, and looking in debian/rules and the rest of the debian/ subdirectory)

一念一轮回 2024-12-23 18:17:50

cmake 添加这将起作用

-DCURSES_LIBRARY=/usr/local/ncurses/5.9/lib/libncurses.a \
-DCURSES_INCLUDE_PATH=/usr/local/ncurses/5.9/include

cmake add this will work

-DCURSES_LIBRARY=/usr/local/ncurses/5.9/lib/libncurses.a \
-DCURSES_INCLUDE_PATH=/usr/local/ncurses/5.9/include

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文