2016-09-01 174 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」)。你不需要做軟鏈接。