首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >libssh2安装中的libssh2.so.1.0.1冲突

libssh2安装中的libssh2.so.1.0.1冲突
EN

Unix & Linux用户
提问于 2015-11-29 06:55:01
回答 1查看 1.7K关注 0票数 2

我正在尝试在ssh2中安装。

但它需要libssh2-1.4.2-2.el6.x86_64.rpm和libssh2-devel-1.4.2-2.el6.x86_64.rpm。

所以我下载并尝试安装,我得到了以下错误

代码语言:javascript
复制
# rpm -ivh libssh2-1.4.2-2.el6.x86_64.rpm libssh2-devel-1.4.2-2.el6.x86_64.rpm
warning: libssh2-1.4.2-2.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 79ea5ed4: NOKEY
Preparing...                ########################################### [100%]
        file /usr/lib64/libssh2.so.1.0.1 from install of libssh2-1.4.2-2.el6.x86_64 conflicts with file from package libssh2-1.4.2-1.el6_6.1.x86_64

yum info libssh2输出

代码语言:javascript
复制
Installed Packages
Name        : libssh2
Arch        : x86_64
Version     : 1.4.2
Release     : 1.el6_6.1
Size        : 318 k
Repo        : installed
From repo   : rhel-x86_64-server-6
Summary     : A library implementing the SSH2 protocol
URL         : http://www.libssh2.org/
License     : BSD
Description : libssh2 is a library implementing the SSH2 protocol as defined by
            : Internet Drafts: SECSH-TRANS(22), SECSH-USERAUTH(25),
            : SECSH-CONNECTION(23), SECSH-ARCH(20), SECSH-FILEXFER(06)*,
            : SECSH-DHGEX(04), and SECSH-NUMBERS(10).

Available Packages
Name        : libssh2
Arch        : i686
Version     : 1.4.2
Release     : 1.el6
Size        : 124 k
Repo        : DVD
Summary     : A library implementing the SSH2 protocol
URL         : http://www.libssh2.org/
License     : BSD
Description : libssh2 is a library implementing the SSH2 protocol as defined by
            : Internet Drafts: SECSH-TRANS(22), SECSH-USERAUTH(25),
            : SECSH-CONNECTION(23), SECSH-ARCH(20), SECSH-FILEXFER(06)*,
            : SECSH-DHGEX(04), and SECSH-NUMBERS(10).

你能帮我吗?

EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2015-11-29 12:39:31

你试着安装两个软件包。通过安装libssh2-1.4.2-2.el6.x86_64.rpm,您可以尝试替换文件/usr/lib64/libssh2.so.1.0.1,该文件也在仍然安装的包libssh2-1.4.2-1.el6_6.1.x86_64中。

使用--upgrade安装更新版本:

代码语言:javascript
复制
rpm -ivh --upgrade libssh2-1.4.2-2.el6.x86_64.rpm libssh2-devel-1.4.2-2.el6.x86_64.rpm

也有可能

代码语言:javascript
复制
yum install libssh2-1.4.2-2.el6.x86_64.rpm libssh2-devel-1.4.2-2.el6.x86_64.rpm
票数 2
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/246164

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档