Steven's Blog

A Dream Land of Peace!

源码安装tmux时libevent Not Found错误解决

While I was installing tmux on cent-os, I met the error saying that “libevent not found”, something like this. Then I download libevent and install it into the location ‘/home/stsun/local’ dir.

Still I get the error saying that “libevent not found”. I solved the problem by the following way.

1
2
DIR="$HOME/local"
./configure --prefix=$DIR CFLAGS="-I$DIR/include" LDFLAGS="-L$DIR/lib"

Since I install libevent with the option, “–prefix=$HOME/local”.