tmux安装不成功,make时提醒cmd-pipe-pane.c:130:derefencing pointer to incompelete type

tmux安装不成功,make时提示cmd-pipe-pane.c:130:derefencing pointer to incompelete type
大家好, 刚安装tmux   软件, 因为这个系统不能上网, 所以下载了 
libevent-2.0.22-stable.tar.gz  tmux-2.0-tar.gz 安装包
首先安装 libevent-2.0.22-stable.tar.gz 
$tar -xzvf libevent-2.0.22-stable.tar.gz 
$cd libevent-2.0.22-stable
$./configure --prefix=/usr
$make && make install
然后 
ls -al /usr/lib | grep libevent 看到了其相应 .so 文件表示安装成功

接着安装 tmux-2.0.tar.gz 
$tar -xzvf tmux-.20.tar.gz
$cd tmux-2.0
$ CFLAGS="-I/usr/include" LDFLAGS="-L/usr/lib"
$./configure
$make
提示 存在 iquote  , who-xxx 错误, 进入Makefile  将相应的选项注释掉
$vim Makefile  
然后注释掉 iquote  机  who--xx 所在的选项, 然后接着 make 
$make 此时提示如下错误:
cmd -pipe-pane.c : In function 'cmd_pipe_pane_exec':
cmd-pipe-pane.c: 66: warning: implicit declaration of function 'bufferevent_free'
cmd-pipe-pane.c : 130: error : dereferencing pointer to incomplete type 
.......................
make ***[cmd-pipe-pane.o] ... 1


出现这个错误, baidu 及 google 检索  error dereferencing pointer to incomplete type  网上已有的解决方案都不能解决这个问题:
网上解决方案之一是: 查找 cmd-pipe-pane.c 130行出所使用的 struct 变量 并查到该变量声明的.h文件 将其 #include 到当前.c文件中, 经过查找 发现 已经#include 相应的头文件到目前的.c文件, 问题依然无法解决。

网上解决方案之二是: set  LDFLAGS="-L/usr/lib"  但是我在./configure 及 make 时 均设置了LDFLAGS  但是还是无法解决这个问题 ,



请问谁在安装 tmux时 遇到过这个问题吗? 该如何解决呢, 在线等, 请告诉一声, 谢谢。 
------解决思路----------------------
试了下在amazon linux下编译安装tmux
过程基本一样除了
$./configure 没有使用 --prefix=/usr
没有使用 CFLAGS="-I/usr/include" LDFLAGS="-L/usr/lib"
编译使用$make
安装使用$sudo make install

因为libevent默认在/usr/local/lib,tmux找不到,于是安装后进行了操作
# echo "/usr/local/lib" >> /etc/ld.so.conf
# ldconfig


其他一切正常,没有遇到楼主提到的错误



------解决思路----------------------
详见
http://blog.indexroot.net/2015/07/12/amazon-linux-compile-install-tmux/
或者
http://blog.****.net/indexroot/article/details/46848115
------解决思路----------------------
设置环境变量的时候,不需要export么?