编译安装tmux所需要的依赖

直接下载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

Author Info :
  • From:编译安装tmux所需要的依赖
  • URL:https://blog.ihipop.com/2011/04/2246.html
  • Please Reserve This Link,Thanks!
  • 发表回复

    您的电子邮箱地址不会被公开。 必填项已用 * 标注