如何在CentOS 8下安装phpseclib?

问题描述 投票:0回答:1

我正在使用Remi仓库在CentOS 8下获取软件包,因为它通常看起来像我所需要的,但是现在我试图安装phpseclib并遇到问题。我正在执行此页面上给出的安装步骤:https://centos.pkgs.org/8/remi-x86_64/php-phpseclib-net-sftp-1.0.17-1.el8.remi.noarch.rpm.html

首先是下载最新的remi-release * rpm

$ wget http://rpms.remirepo.net/enterprise/8/remi/x86_64/remi-release-8.1-2.el8.remi.noarch.rpm
--2020-03-18 14:08:05--  http://rpms.remirepo.net/enterprise/8/remi/x86_64/remi-release-8.1-2.el8.remi.noarch.rpm
Resolving rpms.remirepo.net (rpms.remirepo.net)... 2001:bc8:33a1:100::1, 195.154.241.117
Connecting to rpms.remirepo.net (rpms.remirepo.net)|2001:bc8:33a1:100::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 23420 (23K) [application/x-rpm]
Saving to: ‘remi-release-8.1-2.el8.remi.noarch.rpm’

remi-release-8.1-2.el8.remi.noarch.rpm          100%[======================================================================================================>]  22.87K  --.-KB/s    in 0.02s

2020-03-18 14:08:05 (1.02 MB/s) - ‘remi-release-8.1-2.el8.remi.noarch.rpm’ saved [23420/23420]

很好。接下来,安装它:

$ sudo rpm -Uvh remi-release-8.1-2.el8.remi.noarch.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:remi-release-8.1-2.el8.remi      ################################# [ 50%]
Cleaning up / removing...
   2:remi-release-8.0-4.el8.remi      ################################# [100%]

最后安装php-phpseclib-net-sftp rpm软件包:

$ sudo dnf --enablerepo=remi install php-phpseclib-net-sftp
CentOS-8 - AppStream                                                                                                                                           1.0 MB/s | 4.3 kB     00:00
CentOS-8 - Base                                                                                                                                                1.1 MB/s | 3.8 kB     00:00
CentOS-8 - Extras                                                                                                                                              424 kB/s | 1.5 kB     00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64                                                                                                          43 kB/s |  29 kB     00:00
Extra Packages for Enterprise Linux 8 - x86_64                                                                                                                  40 kB/s |  23 kB     00:00
phalcon_stable                                                                                                                                                 1.2 kB/s | 951  B     00:00
phalcon_stable-source                                                                                                                                          1.2 kB/s | 951  B     00:00
Remi's Modular repository for Enterprise Linux 8 - x86_64                                                                                                       58 kB/s | 3.5 kB     00:00
Safe Remi's RPM repository for Enterprise Linux 8 - x86_64                                                                                                      51 kB/s | 3.0 kB     00:00
Remi's RPM repository for Enterprise Linux 8 - x86_64                                                                                                           43 kB/s | 3.0 kB     00:00
Remi's RPM repository for Enterprise Linux 8 - x86_64                                                                                                          8.5 MB/s | 2.8 MB     00:00
Error:
 Problem: package php-phpseclib-net-sftp-1.0.18-1.el8.remi.noarch requires php-pear(phpseclib.sourceforge.net/Net_SSH2) >= 0.3.0, but none of the providers can be installed
  - cannot install the best candidate for the job
  - nothing provides php-pear(phpseclib.sourceforge.net/Math_BigInteger) >= 0.3.0 needed by php-phpseclib-net-ssh2-1.0.17-1.el8.remi.noarch
  - nothing provides php-pear(phpseclib.sourceforge.net/Math_BigInteger) >= 0.3.0 needed by php-phpseclib-net-ssh2-1.0.18-1.el8.remi.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

我在哪里可以找到正确级别的缺失包裹?网络_SSH2Math_BigInteger

TIA

php ssh scp phpseclib
1个回答
0
投票

1 /您可能需要php-phpseclib,它是新的版本2库。

2 /实际上php-pear-math-biginteger对于旧版本1组件丢失了>]

现在可用(很快就在您附近的镜子上)

注意:如果您想引起适当人员的关注,而不是一些随意的站点,那么报告right place可能更好。

© www.soinside.com 2019 - 2024. All rights reserved.