在RHEL 7.1上为php 7.1安装mongodb驱动程序

时间:2018-04-18 04:39:33

标签: php php-7 pecl php-7.1 rhel7

我正在尝试为php 7.1安装mongodb驱动程序,但没有找到任何解决方案。

使用以下命令

In [46]: x.strides
Out[46]: (480, 160, 40, 8)
In [47]: x.transpose().strides
Out[47]: (8, 40, 160, 480)
In [48]: x.transpose([3,0,1,2]).strides
Out[48]: (8, 480, 160, 40)

但是,没有找到pecl命令。试图通过

安装pecl
pecl install mongodb

但是没有可用的包

2 个答案:

答案 0 :(得分:1)

尝试安装php-pear包。其中包含pecl

P.S。见https://pkgs.org/download/php-pear

答案 1 :(得分:0)

您还可以使用yum软件包:

yum install php71-php-pecl-mongodb.x86_64 -y