CentOS 8下如何安装phpseclib?

How to install phpseclib under CentOS 8?

我正在使用 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)

在哪里可以找到正确级别的缺失包? Net_SSH2 Math_BigInteger

TIA

1/ 你可能需要 php-phpseclib 这是新版本 2 库。

2/ 确实 php-pear-math-biginteger 缺少旧版本 1 组件

现已上市(很快就会出现在您附近的镜子上)

注意:如果您想引起合适的人的注意,而不是某个随机站点,最好在 right place 上报告...