Libevent Not Found Error While Install Tmux

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”.