直接下载tmux编译后会出错 提示
[bash]cc -DBUILD="\"1.4\"" -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:830: error: field 'name_timer' has incomplete type
tmux.h:1032: error: field 'key_timer' has incomplete type
tmux.h:1093: error: field 'event' has incomplete type
tmux.h:1117: error: field 'repeat_timer' has incomplete type
tmux.h:1139: error: field 'identify_timer' has incomplete type
tmux.h:1142: error: field 'message_timer' has incomplete type
make: *** [attributes.o] Error 1[/bash]
这个是因为libevent没有装 相应的依赖还有 libncurses5-dev libncursesw5-dev
[bash]apt-get install libevent-dev
apt-get install libncurses5-dev libncursesw5-dev[/bash]
或者
[bash]yum install libevent-devel
yum install ncurses-devel ncurses[/bash]
即可
这里有个非常详细的教程
http://rainbird.blog.51cto.com/211214/248701