栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

安装php-redis遇到Error: Package: php-pecl-igbinary-1.2.1-1.el7.x86

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

安装php-redis遇到Error: Package: php-pecl-igbinary-1.2.1-1.el7.x86

使用yum install -y php-redis安装php-redis时遇到一系列error

查了一下这个php-redis是一个用来在php中操作redis的,安装它之前需要先安装好php和redis。查一下:

发现redis在运行了,php好像安装了但php -v不显示东西,于是考虑卸载掉php再重装php

[root@VM-0-15-centos bin]# yum remove php*
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package php-common.x86_64 0:7.0.33-21.el7.remi will be erased
---> Package php-fpm.x86_64 0:7.0.33-21.el7.remi will be erased
---> Package php-json.x86_64 0:7.0.33-21.el7.remi will be erased
---> Package php-mysqlnd.x86_64 0:7.0.33-21.el7.remi will be erased
---> Package php-pdo.x86_64 0:7.0.33-21.el7.remi will be erased
---> Package php-xml.x86_64 0:7.0.33-21.el7.remi will be erased
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================
 Package                  Arch                Version                          Repository           Size
=========================================================================================================
Removing:
 php-common               x86_64              7.0.33-21.el7.remi               @php70              8.0 M
 php-fpm                  x86_64              7.0.33-21.el7.remi               @php70              4.1 M
 php-json                 x86_64              7.0.33-21.el7.remi               @php70               80 k
 php-mysqlnd              x86_64              7.0.33-21.el7.remi               @php70              888 k
 php-pdo                  x86_64              7.0.33-21.el7.remi               @php70              381 k
 php-xml                  x86_64              7.0.33-21.el7.remi               @php70              854 k

Transaction Summary
=========================================================================================================
Remove  6 Packages

Installed size: 14 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : php-fpm-7.0.33-21.el7.remi.x86_64                                                     1/6 
  Erasing    : php-mysqlnd-7.0.33-21.el7.remi.x86_64                                                 2/6 
  Erasing    : php-pdo-7.0.33-21.el7.remi.x86_64                                                     3/6 
  Erasing    : php-xml-7.0.33-21.el7.remi.x86_64                                                     4/6 
  Erasing    : php-json-7.0.33-21.el7.remi.x86_64                                                    5/6 
  Erasing    : php-common-7.0.33-21.el7.remi.x86_64                                                  6/6 
  Verifying  : php-xml-7.0.33-21.el7.remi.x86_64                                                     1/6 
  Verifying  : php-common-7.0.33-21.el7.remi.x86_64                                                  2/6 
  Verifying  : php-mysqlnd-7.0.33-21.el7.remi.x86_64                                                 3/6 
  Verifying  : php-json-7.0.33-21.el7.remi.x86_64                                                    4/6 
  Verifying  : php-pdo-7.0.33-21.el7.remi.x86_64                                                     5/6 
  Verifying  : php-fpm-7.0.33-21.el7.remi.x86_64                                                     6/6 

Removed:
  php-common.x86_64 0:7.0.33-21.el7.remi             php-fpm.x86_64 0:7.0.33-21.el7.remi                
  php-json.x86_64 0:7.0.33-21.el7.remi               php-mysqlnd.x86_64 0:7.0.33-21.el7.remi            
  php-pdo.x86_64 0:7.0.33-21.el7.remi                php-xml.x86_64 0:7.0.33-21.el7.remi                

Complete!
[root@VM-0-15-centos bin]# rpm -qa|grep php
[root@VM-0-15-centos bin]# rpm -Uvh https://mirrors.cloud.tencent.com/epel/epel-release-latest-7.noarch.rpm
Retrieving https://mirrors.cloud.tencent.com/epel/epel-release-latest-7.noarch.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:epel-release-7-14                ################################# [ 50%]
Cleaning up / removing...
   2:epel-release-7-12                ################################# [100%]
[root@VM-0-15-centos bin]# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
Retrieving https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
warning: /var/tmp/rpm-tmp.OuMYKR: Header V4 RSA/SHA1 Signature, key ID 62e74ca5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:webtatic-release-7-3             ################################# [100%]
[root@VM-0-15-centos bin]# yum -y install php70w php70w-opcache php70w-mbstring php70w-gd php70w-xml php70w-pear php70w-fpm php70w-mysql php70w-pdo
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * webtatic: us-east.repo.webtatic.com
webtatic                                                                          | 3.6 kB  00:00:00     
(1/2): webtatic/x86_64/group_gz                                                   |  448 B  00:00:01     
(2/2): webtatic/x86_64/primary_db                                                 | 271 kB  00:00:02     
Resolving Dependencies
--> Running transaction check
---> Package php70w.x86_64 0:7.0.33-1.w7 will be installed
--> Processing Dependency: php70w-common(x86-64) = 7.0.33-1.w7 for package: php70w-7.0.33-1.w7.x86_64
--> Processing Dependency: php70w-cli(x86-64) = 7.0.33-1.w7 for package: php70w-7.0.33-1.w7.x86_64
--> Processing Dependency: php70w-cli = 7.0.33-1.w7 for package: php70w-7.0.33-1.w7.x86_64
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: php70w-7.0.33-1.w7.x86_64
--> Processing Dependency: httpd for package: php70w-7.0.33-1.w7.x86_64
---> Package php70w-fpm.x86_64 0:7.0.33-1.w7 will be installed
---> Package php70w-gd.x86_64 0:7.0.33-1.w7 will be installed
--> Processing Dependency: libXpm.so.4()(64bit) for package: php70w-gd-7.0.33-1.w7.x86_64
--> Processing Dependency: libX11.so.6()(64bit) for package: php70w-gd-7.0.33-1.w7.x86_64
---> Package php70w-mbstring.x86_64 0:7.0.33-1.w7 will be installed
---> Package php70w-mysql.x86_64 0:7.0.33-1.w7 will be installed
---> Package php70w-opcache.x86_64 0:7.0.33-1.w7 will be installed
---> Package php70w-pdo.x86_64 0:7.0.33-1.w7 will be installed
---> Package php70w-pear.noarch 1:1.10.4-1.w7 will be installed
--> Processing Dependency: php70w-posix for package: 1:php70w-pear-1.10.4-1.w7.noarch
---> Package php70w-xml.x86_64 0:7.0.33-1.w7 will be installed
--> Running transaction check
---> Package httpd.x86_64 0:2.4.6-97.el7.centos.1 will be installed
--> Processing Dependency: httpd-tools = 2.4.6-97.el7.centos.1 for package: httpd-2.4.6-97.el7.centos.1.x86_64
--> Processing Dependency: /etc/mime.types for package: httpd-2.4.6-97.el7.centos.1.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.4.6-97.el7.centos.1.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.4.6-97.el7.centos.1.x86_64
---> Package libX11.x86_64 0:1.6.7-4.el7_9 will be installed
--> Processing Dependency: libX11-common >= 1.6.7-4.el7_9 for package: libX11-1.6.7-4.el7_9.x86_64
--> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.6.7-4.el7_9.x86_64
---> Package libXpm.x86_64 0:3.5.12-1.el7 will be installed
---> Package php70w-cli.x86_64 0:7.0.33-1.w7 will be installed
---> Package php70w-common.x86_64 0:7.0.33-1.w7 will be installed
---> Package php70w-process.x86_64 0:7.0.33-1.w7 will be installed
--> Running transaction check
---> Package apr.x86_64 0:1.4.8-7.el7 will be installed
---> Package apr-util.x86_64 0:1.5.2-6.el7 will be installed
---> Package httpd-tools.x86_64 0:2.4.6-97.el7.centos.1 will be installed
---> Package libX11-common.noarch 0:1.6.7-4.el7_9 will be installed
---> Package libxcb.x86_64 0:1.13-1.el7 will be installed
--> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.13-1.el7.x86_64
---> Package mailcap.noarch 0:2.1.41-2.el7 will be installed
--> Running transaction check
---> Package libXau.x86_64 0:1.0.8-2.1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================
 Package                    Arch              Version                          Repository           Size
=========================================================================================================
Installing:
 php70w                     x86_64            7.0.33-1.w7                      webtatic            2.8 M
 php70w-fpm                 x86_64            7.0.33-1.w7                      webtatic            1.5 M
 php70w-gd                  x86_64            7.0.33-1.w7                      webtatic            135 k
 php70w-mbstring            x86_64            7.0.33-1.w7                      webtatic            544 k
 php70w-mysql               x86_64            7.0.33-1.w7                      webtatic             84 k
 php70w-opcache             x86_64            7.0.33-1.w7                      webtatic            131 k
 php70w-pdo                 x86_64            7.0.33-1.w7                      webtatic             93 k
 php70w-pear                noarch            1:1.10.4-1.w7                    webtatic            340 k
 php70w-xml                 x86_64            7.0.33-1.w7                      webtatic            131 k
Installing for dependencies:
 apr                        x86_64            1.4.8-7.el7                      os                  104 k
 apr-util                   x86_64            1.5.2-6.el7                      os                   92 k
 httpd                      x86_64            2.4.6-97.el7.centos.1            updates             2.7 M
 httpd-tools                x86_64            2.4.6-97.el7.centos.1            updates              93 k
 libX11                     x86_64            1.6.7-4.el7_9                    updates             607 k
 libX11-common              noarch            1.6.7-4.el7_9                    updates             164 k
 libXau                     x86_64            1.0.8-2.1.el7                    os                   29 k
 libXpm                     x86_64            3.5.12-1.el7                     os                   55 k
 libxcb                     x86_64            1.13-1.el7                       os                  214 k
 mailcap                    noarch            2.1.41-2.el7                     os                   31 k
 php70w-cli                 x86_64            7.0.33-1.w7                      webtatic            2.9 M
 php70w-common              x86_64            7.0.33-1.w7                      webtatic            1.2 M
 php70w-process             x86_64            7.0.33-1.w7                      webtatic             43 k

Transaction Summary
=========================================================================================================
Install  9 Packages (+13 Dependent packages)

Total download size: 14 M
Installed size: 52 M
Downloading packages:
(1/22): httpd-tools-2.4.6-97.el7.centos.1.x86_64.rpm                              |  93 kB  00:00:00     
(2/22): apr-1.4.8-7.el7.x86_64.rpm                                                | 104 kB  00:00:00     
(3/22): apr-util-1.5.2-6.el7.x86_64.rpm                                           |  92 kB  00:00:00     
(4/22): libX11-1.6.7-4.el7_9.x86_64.rpm                                           | 607 kB  00:00:00     
(5/22): httpd-2.4.6-97.el7.centos.1.x86_64.rpm                                    | 2.7 MB  00:00:00     
(6/22): libXau-1.0.8-2.1.el7.x86_64.rpm                                           |  29 kB  00:00:00     
(7/22): libxcb-1.13-1.el7.x86_64.rpm                                              | 214 kB  00:00:00     
(8/22): mailcap-2.1.41-2.el7.noarch.rpm                                           |  31 kB  00:00:00     
(9/22): libXpm-3.5.12-1.el7.x86_64.rpm                                            |  55 kB  00:00:00     
(10/22): libX11-common-1.6.7-4.el7_9.noarch.rpm                                   | 164 kB  00:00:00     
warning: /var/cache/yum/x86_64/7/webtatic/packages/php70w-common-7.0.33-1.w7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 62e74ca5: NOKEY
Public key for php70w-common-7.0.33-1.w7.x86_64.rpm is not installed
(11/22): php70w-common-7.0.33-1.w7.x86_64.rpm                                     | 1.2 MB  00:00:02     
(12/22): php70w-gd-7.0.33-1.w7.x86_64.rpm                                         | 135 kB  00:00:00     
(13/22): php70w-7.0.33-1.w7.x86_64.rpm                                            | 2.8 MB  00:00:03     
(14/22): php70w-cli-7.0.33-1.w7.x86_64.rpm                                        | 2.9 MB  00:00:03     
(15/22): php70w-mysql-7.0.33-1.w7.x86_64.rpm                                      |  84 kB  00:00:00     
(16/22): php70w-mbstring-7.0.33-1.w7.x86_64.rpm                                   | 544 kB  00:00:00     
(17/22): php70w-pdo-7.0.33-1.w7.x86_64.rpm                                        |  93 kB  00:00:00     
(18/22): php70w-pear-1.10.4-1.w7.noarch.rpm                                       | 340 kB  00:00:00     
(19/22): php70w-process-7.0.33-1.w7.x86_64.rpm                                    |  43 kB  00:00:00     
(20/22): php70w-xml-7.0.33-1.w7.x86_64.rpm                                        | 131 kB  00:00:00     
(21/22): php70w-opcache-7.0.33-1.w7.x86_64.rpm                                    | 131 kB  00:00:01     
(22/22): php70w-fpm-7.0.33-1.w7.x86_64.rpm                                        | 1.5 MB  00:00:55     
---------------------------------------------------------------------------------------------------------
Total                                                                    249 kB/s |  14 MB  00:00:56     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-el7
importing GPG key 0x62E74CA5:
 Userid     : "Webtatic EL7 "
 Fingerprint: 830d b159 6d9b 9b01 99dc 24a3 e87f d236 62e7 4ca5
 Package    : webtatic-release-7-3.noarch (installed)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-el7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : php70w-common-7.0.33-1.w7.x86_64                                                     1/22 
  Installing : apr-1.4.8-7.el7.x86_64                                                               2/22 
  Installing : apr-util-1.5.2-6.el7.x86_64                                                          3/22 
  Installing : php70w-cli-7.0.33-1.w7.x86_64                                                        4/22 
  Installing : httpd-tools-2.4.6-97.el7.centos.1.x86_64                                             5/22 
  Installing : php70w-process-7.0.33-1.w7.x86_64                                                    6/22 
  Installing : php70w-pdo-7.0.33-1.w7.x86_64                                                        7/22 
  Installing : php70w-xml-7.0.33-1.w7.x86_64                                                        8/22 
  Installing : libX11-common-1.6.7-4.el7_9.noarch                                                   9/22 
  Installing : libXau-1.0.8-2.1.el7.x86_64                                                         10/22 
  Installing : libxcb-1.13-1.el7.x86_64                                                            11/22 
  Installing : libX11-1.6.7-4.el7_9.x86_64                                                         12/22 
  Installing : libXpm-3.5.12-1.el7.x86_64                                                          13/22 
  Installing : mailcap-2.1.41-2.el7.noarch                                                         14/22 
  Installing : httpd-2.4.6-97.el7.centos.1.x86_64                                                  15/22 
  Installing : php70w-7.0.33-1.w7.x86_64                                                           16/22 
  Installing : php70w-gd-7.0.33-1.w7.x86_64                                                        17/22 
  Installing : 1:php70w-pear-1.10.4-1.w7.noarch                                                    18/22 
  Installing : php70w-mysql-7.0.33-1.w7.x86_64                                                     19/22 
  Installing : php70w-fpm-7.0.33-1.w7.x86_64                                                       20/22 
  Installing : php70w-mbstring-7.0.33-1.w7.x86_64                                                  21/22 
  Installing : php70w-opcache-7.0.33-1.w7.x86_64                                                   22/22 
  Verifying  : php70w-cli-7.0.33-1.w7.x86_64                                                        1/22 
  Verifying  : mailcap-2.1.41-2.el7.noarch                                                          2/22 
  Verifying  : httpd-tools-2.4.6-97.el7.centos.1.x86_64                                             3/22 
  Verifying  : php70w-process-7.0.33-1.w7.x86_64                                                    4/22 
  Verifying  : php70w-gd-7.0.33-1.w7.x86_64                                                         5/22 
  Verifying  : apr-1.4.8-7.el7.x86_64                                                               6/22 
  Verifying  : php70w-mysql-7.0.33-1.w7.x86_64                                                      7/22 
  Verifying  : php70w-7.0.33-1.w7.x86_64                                                            8/22 
  Verifying  : libxcb-1.13-1.el7.x86_64                                                             9/22 
  Verifying  : php70w-fpm-7.0.33-1.w7.x86_64                                                       10/22 
  Verifying  : php70w-pdo-7.0.33-1.w7.x86_64                                                       11/22 
  Verifying  : libXpm-3.5.12-1.el7.x86_64                                                          12/22 
  Verifying  : php70w-xml-7.0.33-1.w7.x86_64                                                       13/22 
  Verifying  : apr-util-1.5.2-6.el7.x86_64                                                         14/22 
  Verifying  : php70w-mbstring-7.0.33-1.w7.x86_64                                                  15/22 
  Verifying  : php70w-common-7.0.33-1.w7.x86_64                                                    16/22 
  Verifying  : libXau-1.0.8-2.1.el7.x86_64                                                         17/22 
  Verifying  : libX11-1.6.7-4.el7_9.x86_64                                                         18/22 
  Verifying  : 1:php70w-pear-1.10.4-1.w7.noarch                                                    19/22 
  Verifying  : httpd-2.4.6-97.el7.centos.1.x86_64                                                  20/22 
  Verifying  : libX11-common-1.6.7-4.el7_9.noarch                                                  21/22 
  Verifying  : php70w-opcache-7.0.33-1.w7.x86_64                                                   22/22 

Installed:
  php70w.x86_64 0:7.0.33-1.w7                       php70w-fpm.x86_64 0:7.0.33-1.w7                     
  php70w-gd.x86_64 0:7.0.33-1.w7                    php70w-mbstring.x86_64 0:7.0.33-1.w7                
  php70w-mysql.x86_64 0:7.0.33-1.w7                 php70w-opcache.x86_64 0:7.0.33-1.w7                 
  php70w-pdo.x86_64 0:7.0.33-1.w7                   php70w-pear.noarch 1:1.10.4-1.w7                    
  php70w-xml.x86_64 0:7.0.33-1.w7                  

Dependency Installed:
  apr.x86_64 0:1.4.8-7.el7                         apr-util.x86_64 0:1.5.2-6.el7                         
  httpd.x86_64 0:2.4.6-97.el7.centos.1             httpd-tools.x86_64 0:2.4.6-97.el7.centos.1            
  libX11.x86_64 0:1.6.7-4.el7_9                    libX11-common.noarch 0:1.6.7-4.el7_9                  
  libXau.x86_64 0:1.0.8-2.1.el7                    libXpm.x86_64 0:3.5.12-1.el7                          
  libxcb.x86_64 0:1.13-1.el7                       mailcap.noarch 0:2.1.41-2.el7                         
  php70w-cli.x86_64 0:7.0.33-1.w7                  php70w-common.x86_64 0:7.0.33-1.w7                    
  php70w-process.x86_64 0:7.0.33-1.w7             

Complete!
[root@VM-0-15-centos bin]# php -v
PHP 7.0.33 (cli) (built: Dec  6 2018 22:30:44) ( NTS )

此时就重新安装好了php,再次尝试安装php-redis:

[root@VM-0-15-centos bin]# yum install -y php-redis
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * webtatic: us-east.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php70w-pecl-redis.x86_64 0:3.1.6-1.w7 will be installed
--> Processing Dependency: php-pecl-igbinary(x86-64) for package: php70w-pecl-redis-3.1.6-1.w7.x86_64
--> Running transaction check
---> Package php70w-pecl-igbinary.x86_64 0:2.0.5-1.w7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================
 Package                          Arch               Version                  Repository            Size
=========================================================================================================
Installing:
 php70w-pecl-redis                x86_64             3.1.6-1.w7               webtatic             179 k
Installing for dependencies:
 php70w-pecl-igbinary             x86_64             2.0.5-1.w7               webtatic              88 k

Transaction Summary
=========================================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 267 k
Installed size: 1.3 M
Downloading packages:
(1/2): php70w-pecl-igbinary-2.0.5-1.w7.x86_64.rpm                                 |  88 kB  00:00:02     
(2/2): php70w-pecl-redis-3.1.6-1.w7.x86_64.rpm                                    | 179 kB  00:00:03     
---------------------------------------------------------------------------------------------------------
Total                                                                     72 kB/s | 267 kB  00:00:03     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : php70w-pecl-igbinary-2.0.5-1.w7.x86_64                                                1/2 
  Installing : php70w-pecl-redis-3.1.6-1.w7.x86_64                                                   2/2 
  Verifying  : php70w-pecl-redis-3.1.6-1.w7.x86_64                                                   1/2 
  Verifying  : php70w-pecl-igbinary-2.0.5-1.w7.x86_64                                                2/2 

Installed:
  php70w-pecl-redis.x86_64 0:3.1.6-1.w7                                                                  

Dependency Installed:
  php70w-pecl-igbinary.x86_64 0:2.0.5-1.w7                                                               

Complete!

成功

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/360938.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号