无法通过外壳在CentOS 7上安装phpMyAdmin [英] Can't install phpMyAdmin on CentOS 7 via shell

查看:242
本文介绍了无法通过外壳在CentOS 7上安装phpMyAdmin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

yum -y install phpmyadmin

发生错误:

Error: Package: phpMyAdmin-4.4.15.10-2.el7.noarch (epel)
       Requires: php-zip
       Available: php-common-5.4.16-42.el7.x86_64 (base)
           php-zip
       Available: php-common-5.4.16-43.el7_4.x86_64 (updates)
           php-zip
       Available: php-pecl-zip-1.15.1-2.el7.remi.7.2.x86_64 (remi-php72)
           php-zip = 1:1.15.1-2.el7.remi.7.2
       Available: php-pecl-zip-1.15.2-1.el7.remi.7.2.x86_64 (remi-php72)
           php-zip = 1:1.15.2-1.el7.remi.7.2
       Available: php55w-common-5.5.38-1.w7.x86_64 (webtatic)
           php-zip
       Available: php56w-common-5.6.31-1.w7.x86_64 (webtatic)
           php-zip
       Available: php56w-common-5.6.31-2.w7.x86_64 (webtatic)
           php-zip
       Available: php56w-common-5.6.32-1.w7.x86_64 (webtatic)
           php-zip
       Available: php70w-common-7.0.22-2.w7.x86_64 (webtatic)
           php-zip
       Available: php70w-common-7.0.23-1.w7.x86_64 (webtatic)
           php-zip
       Available: php70w-common-7.0.23-2.w7.x86_64 (webtatic)
           php-zip
       Available: php70w-common-7.0.24-1.w7.x86_64 (webtatic)
           php-zip
       Available: php70w-common-7.0.25-1.w7.x86_64 (webtatic)
           php-zip
       Available: php71w-common-7.1.8-2.w7.x86_64 (webtatic)
           php-zip
       Available: php71w-common-7.1.9-1.w7.x86_64 (webtatic)
           php-zip
       Available: php71w-common-7.1.9-2.w7.x86_64 (webtatic)
           php-zip
       Available: php71w-common-7.1.10-1.w7.x86_64 (webtatic)
           php-zip
       Available: php71w-common-7.1.11-1.w7.x86_64 (webtatic)
           php-zip
       Installed: php-common-7.2.0-2.el7.remi.x86_64 (@remi-php72)
           Not found
       Available: php-common-7.2.0~RC6-1.el7.remi.x86_64 (remi-php72)
           Not found
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

我比较懒于设置LAMP服务器,但是看起来问题出在不同的模块中.有任何问题的解决方案或建议吗?

我如何安装php 7.2:

yum-config-manager --enable remi-php72
yum -y install php php-mysql php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap curl curl-devel php-mcrypt php-pecl-ap

P.S操作系统是CentOS 7

解决方案

php-pecl-zip -1.15.2-1.el7.remi.7.2.x86_64是正确的扩展名.

我建议您禁用引起冲突的webtatic. 尝试先安装php-pecl-zip

我还建议使用最新的php版本从"remi"存储库安装phpMyAdmin,该版本比EPEL版本(4.4)更新得多(4.7).

yum-config-manager --disable webtatic
yum install php-pecl-zip
yum --enablerepo=remi install phpMyAdmin

yum -y install phpmyadmin

Occurs error:

Error: Package: phpMyAdmin-4.4.15.10-2.el7.noarch (epel)
       Requires: php-zip
       Available: php-common-5.4.16-42.el7.x86_64 (base)
           php-zip
       Available: php-common-5.4.16-43.el7_4.x86_64 (updates)
           php-zip
       Available: php-pecl-zip-1.15.1-2.el7.remi.7.2.x86_64 (remi-php72)
           php-zip = 1:1.15.1-2.el7.remi.7.2
       Available: php-pecl-zip-1.15.2-1.el7.remi.7.2.x86_64 (remi-php72)
           php-zip = 1:1.15.2-1.el7.remi.7.2
       Available: php55w-common-5.5.38-1.w7.x86_64 (webtatic)
           php-zip
       Available: php56w-common-5.6.31-1.w7.x86_64 (webtatic)
           php-zip
       Available: php56w-common-5.6.31-2.w7.x86_64 (webtatic)
           php-zip
       Available: php56w-common-5.6.32-1.w7.x86_64 (webtatic)
           php-zip
       Available: php70w-common-7.0.22-2.w7.x86_64 (webtatic)
           php-zip
       Available: php70w-common-7.0.23-1.w7.x86_64 (webtatic)
           php-zip
       Available: php70w-common-7.0.23-2.w7.x86_64 (webtatic)
           php-zip
       Available: php70w-common-7.0.24-1.w7.x86_64 (webtatic)
           php-zip
       Available: php70w-common-7.0.25-1.w7.x86_64 (webtatic)
           php-zip
       Available: php71w-common-7.1.8-2.w7.x86_64 (webtatic)
           php-zip
       Available: php71w-common-7.1.9-1.w7.x86_64 (webtatic)
           php-zip
       Available: php71w-common-7.1.9-2.w7.x86_64 (webtatic)
           php-zip
       Available: php71w-common-7.1.10-1.w7.x86_64 (webtatic)
           php-zip
       Available: php71w-common-7.1.11-1.w7.x86_64 (webtatic)
           php-zip
       Installed: php-common-7.2.0-2.el7.remi.x86_64 (@remi-php72)
           Not found
       Available: php-common-7.2.0~RC6-1.el7.remi.x86_64 (remi-php72)
           Not found
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

I'm lamer at setting up a LAMP server, but looks like the problem is in different modules. Any problem solutions or suggestions?

How I have installed php 7.2:

yum-config-manager --enable remi-php72
yum -y install php php-mysql php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap curl curl-devel php-mcrypt php-pecl-ap

P.S OS is CentOS 7

解决方案

php-pecl-zip-1.15.2-1.el7.remi.7.2.x86_64 is the right extension.

I recommend you disable webtatic which raise conflicts. Try to install php-pecl-zip first

I also recommend with recent php version to install phpMyAdmin from "remi" repository which is much more recent (4.7) than EPEL version (4.4).

yum-config-manager --disable webtatic
yum install php-pecl-zip
yum --enablerepo=remi install phpMyAdmin

这篇关于无法通过外壳在CentOS 7上安装phpMyAdmin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆