tmux中的“libevent not found”错误

我试图在我的Scientific Linux 6.5(Carbon)机器上安装tmux

这是我遵循的步骤

wget http://downloads.sourceforge.net/tmux/tmux-1.9.tar.gz tar xvzf tmux-1.9.tar.gz 

 cd tmux-1.9 ./configure 

在这一步它显示错误:

 configure: error: "libevent not found" 

为了解决它,我做了以下几件事:

 emacs /etc/yum.repos.d/pgdg-92-sl.repo 

并添加了以下几行

 [pgdg92] name=PostgreSQL 9.2 $releasever - $basearch baseurl=http://yum.postgresql.org/9.2/redhat/rhel-6.4-$basearch enabled=1 gpgcheck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-92 [pgdg92-source] name=PostgreSQL 9.2 $releasever - $basearch - Source failovermethod=priority baseurl=http://yum.postgresql.org/srpms/9.2/redhat/rhel-6.4-$basearch enabled=0 gpgcheck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-92 

然后呢:

 yum install libevent 

它正确安装

仍然错误configuration: error: "libevent not found"没有解决

提前致谢 :)

如果您正在尝试构建软件,那么您需要开发包。 安装libevent-devel

对于基于ubuntu的发行版,软件包是libevent-dev