0

我正在尝试安装libevent-devel,但由于依赖关系而失败,如下所示。

我还尝试安装 libevent-devel 所需的依赖项,但它也失败了,因为它需要 libevent-devel,如下所示。

我该如何解决这个问题?希望得到您的帮助。

[root@box1 opt]# rpm -ivh libevent-devel-1.4.13-4.el6.x86_64.rpm

警告:libevent-devel-1.4.13-4.el6.x86_64.rpm:标头 V3 RSA/SHA1 签名,密钥 ID c105b9de:NOKEY 错误:依赖项失败:

libevent-doc = 1.4.13-4.el6 is needed by libevent-devel-1.4.13-4.el6.x86_64
libevent-headers = 1.4.13-4.el6 is needed by libevent-devel-1.4.13-4.el6.x86_64

[root@box1 选择]#

[root@box1 opt]# rpm -ivh libevent-doc-1.4.13-4.el6.noarch.rpm

警告:libevent-doc-1.4.13-4.el6.noarch.rpm:标头 V4 DSA/SHA1 签名,密钥 ID 192a7d7d:NOKEY 错误:依赖项失败:

libevent-devel = 1.4.13-4.el6 is needed by libevent-doc-1.4.13-4.el6.noarch

[root@box1 选择]#

[root@box1 opt]# rpm -ivh libevent-headers-1.4.13-4.el6.noarch.rpm

警告:libevent-headers-1.4.13-4.el6.noarch.rpm:标头 V3 RSA/SHA1 签名,密钥 ID c105b9de:NOKEY 错误:依赖项失败:

libevent-devel = 1.4.13-4.el6 is needed by libevent-headers-1.4.13-4.el6.noarch

[root@box1 选择]#

4

3 回答 3

4

从http://libevent.org/下载 libevent 包并编译它。

wget "https://github.com/downloads/libevent/libevent/libevent-1.4.14b-stable.tar.gz"
tar -xzvf libevent-1.4.14b-stable.tar.gz
cd libevent-1.4.14b-stable
./configure
make
sudo make install
于 2013-04-12T09:30:40.083 回答
1

在同一命令行上给出rpm 所有相互依赖的包,它会识别出依赖关系得到满足:

rpm -ivh libevent-devel-1.4.13-4.el6.x86_64.rpm libevent-doc-1.4.13-4.el6.noarch.rpm libevent-headers-1.4.13-4.el6.noarch.rpm
于 2016-09-23T16:09:36.507 回答
0

我还发现了这种循环依赖。只需使用 --nodeps 选项解决它。

[root@box1 opt]# rpm -ivh libevent-devel-1.4.13-4.el6.x86_64.rpm --nodeps

安装后,您现在可以毫无问题地安装 libevent-doc 和 libevent-headers。

于 2016-06-28T12:25:11.550 回答