![在 Ubuntu 上从源代码安装 tmux](https://linux22.com/image/1252956/%E5%9C%A8%20Ubuntu%20%E4%B8%8A%E4%BB%8E%E6%BA%90%E4%BB%A3%E7%A0%81%E5%AE%89%E8%A3%85%20tmux.png)
我已经下载tmux并尝试在 Ubuntu 10.04 上安装它。
$ ./configure
Configured for Linux
$ make
cc -DBUILD="\"1.3\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -c -o attributes.o attributes.c
In file included from attributes.c:23:
tmux.h:30:19: error: event.h: No such file or directory
In file included from attributes.c:23:
tmux.h:831: error: field ‘name_timer’ has incomplete type
tmux.h:1025: error: field ‘key_timer’ has incomplete type
tmux.h:1086: error: field ‘event’ has incomplete type
tmux.h:1102: error: field ‘repeat_timer’ has incomplete type
tmux.h:1122: error: field ‘identify_timer’ has incomplete type
tmux.h:1125: error: field ‘message_timer’ has incomplete type
make: *** [attributes.o] Error 1
答案1
event.h 位于libevent-dev
包中。
apt-get install libevent-dev
顺便问一下,您可以使用tmux
Ubuntu 软件包吗?
答案2
tmux.h:30:19:错误:event.h:没有这样的文件或目录
使用 apt 来找出哪个*-dev
包包含event.h
。