我正在尝试安装 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 opt]#
[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 opt]#
[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 opt]#
答案 0 :(得分: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
答案 1 :(得分: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
答案 2 :(得分:0)
我也发现了这种循环依赖。 只需使用--nodeps选项解决它。
[root@box1 opt]# rpm -ivh libevent-devel-1.4.13-4.el6.x86_64.rpm --nodeps
安装完成后,您现在可以毫无问题地安装libevent-doc和libevent-headers。