從原始碼在 Ubuntu 上安裝 tmux

從原始碼在 Ubuntu 上安裝 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

順便問一下,可以使用tmuxUbuntu 軟體包嗎?

答案2

tmux.h:30:19: 錯誤: event.h: 沒有這樣的檔案或目錄

使用 apt 找出哪個*-dev包包含event.h.

相關內容