我正在尝试在 RHEL 中为 PHP 安装 ssh2。
但它需要 libssh2-1.4.2-2.el6.x86_64.rpm 和 libssh2-devel-1.4.2-2.el6.x86_64.rpm。
所以我下载并尝试安装,出现以下错误
# 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
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).
你能帮我解决这个问题吗?
答案1
您尝试安装两个软件包。安装后,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
安装较新版本:
rpm -ivh --upgrade libssh2-1.4.2-2.el6.x86_64.rpm libssh2-devel-1.4.2-2.el6.x86_64.rpm
并且也有可能
yum install libssh2-1.4.2-2.el6.x86_64.rpm libssh2-devel-1.4.2-2.el6.x86_64.rpm