对__b64_ntop的未定义引用:centOS上的tmux编译错误


2

我在http://tmux.sourceforge.net/上找到了tmux 。我仔细阅读了README,安装了所有依赖项(libevent,ncurses-dev ...)。但是当我运行“make”命令时,它显示如下错误:

... / tty.c:1067:未定义对`__b64_ntop'的引用

我该怎么办?

Answers:


2

打开Makefile,找到这一行:

LIBS = -lutil -lcurses -levent -lrt

把它改成这个:

LIBS = -lutil -lcurses -levent -lrt -lresolv

它会工作。缺少libresolv导致你的错误,没有e落后的话,没有resolve

当你启动tmux时,如果存在这样的错误:

tmux: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory

你需要一个软链接:

sudo ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib/

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.