我正在尝试在我的Scientific Linux 6.5(Carbon)机器上安装tmux
这些是我遵循的步骤
wget http://downloads.sourceforge.net/tmux/tmux-1.9.tar.gz
tar xvzf tmux-1.9.tar.gz
Run Code Online (Sandbox Code Playgroud)
cd tmux-1.9
./configure
Run Code Online (Sandbox Code Playgroud)
在这一步,它显示错误:
configure: error: "libevent not found" ??
Run Code Online (Sandbox Code Playgroud)
要解决这个问题,我做了以下几点:
emacs /etc/yum.repos.d/pgdg-92-sl.repo?
Run Code Online (Sandbox Code Playgroud)
并添加以下行
[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
Run Code Online (Sandbox Code Playgroud)
然后做了:
yum install libevent??
Run Code Online (Sandbox Code Playgroud)
它安装正确
仍配置错误:error: "libevent not found"
未解决
提前致谢 :)
Ign*_*ams 113
如果您正在尝试构建软件,那么您需要开发包.安装libevent-devel
.
对于基于ubuntu的发行版,包是 libevent-dev