获取错误警告:无法链接libevent。取消链接

时间:2014-04-11 00:49:16

标签: tmux libevent

尝试在OSX上安装tmux但得到:

$ brew install tmux
Error: You must `brew link libevent' before tmux can
mdurrant@C02MH2DQFD58:~
$ brew link libevent
Linking /usr/local/Cellar/libevent/2.0.21... 
Warning: Could not link libevent. Unlinking...
Error: Permission denied - /usr/local/include/event2

我不能将啤酒用于sudo。

我之前尝试通过在本地编译来安装libevent,现在我似乎无法摆脱它的痕迹,虽然我去了我拥有它的地方但sudo make uninstall

1 个答案:

答案 0 :(得分:0)

最后答案是:

安装iterm2

brew install automake 

brew install pkg-config
rm configure
sh autogen.sh 
./configure 
make
make install

这有助于(http://whiletruecode.com/post/installing-iterm2-and-tmux-osx)和我有一个几乎完全相同的经历,虽然最后一步不是破坏的链接,而是做上述