2016-09-01 175 views
0

我试图从源代码构建tmux(下载.tar),并且我遇到了一些依赖问题。从源代码构建tmux

当我运行

./configure 

我得到这个错误

checking for LIBEVENT... no 
checking for library containing event_init... no 
configure: error: "libevent not found" 

但我已经安装了库。

$ dpkg -L libevent-2.0-5 
/. 
/usr 
/usr/lib 
/usr/lib/x86_64-linux-gnu 
/usr/lib/x86_64-linux-gnu/libevent-2.0.so.5.1.9 
/usr/share 
/usr/share/doc 
/usr/share/doc/libevent-2.0-5 
/usr/share/doc/libevent-2.0-5/copyright 
/usr/share/doc/libevent-2.0-5/changelog.Debian.gz 
/usr/lib/x86_64-linux-gnu/libevent-2.0.so.5 

我设法使

$ cd /usr/lib/x86_64-linux-gnu 
$ ln -s libevent-2.0.so.5.1.9 libevent.so 

是在配置脚本专门为libevent.so寻找解决问题呢?如果是这样,为什么不是我的liibevent安装默认的符号链接?

但是,当解决这个问题时,另一个类似的问题是libncurses这也是我已经安装的。

在此先感谢您的帮助。

回答

2

确保你安装了这些库的“-dev”版本(即“sudo apt-get install libevent-dev”)。你不需要做软链接。