我正试图在我的科学Linux版本6.5 (碳)机器上安装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
它安装正确
仍然错误配置:error: "libevent not found"
未解决
(预先谢谢:)
发布于 2014-02-21 05:44:33
如果您正在尝试构建软件,那么您需要开发包。安装libevent-devel
。
在基于Debian/Ubuntu的发行版上,您可以使用
sudo apt install libevent-dev
发布于 2021-03-03 06:15:14
对于CentOS,
sudo yum install libevent-devel
发布于 2020-01-24 15:35:13
对于在mac上遇到这种情况的任何人,您都可以通过自制的方式安装:http://macappstore.org/libevent/ => brew install libevent
。
https://stackoverflow.com/questions/21926202
复制相似问题