无法安装phpmyadmin有错误

当我尝试安装phpmyadin时,出现了一些错误,我错过了什么吗?

CentOS 7

# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm # wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm # rpm -Uvh remi-release-7*.rpm epel-release-7*.rpm # yum update # yum --enablerepo=remi,remi-php55 install php php-common # yum --enablerepo=remi,remi-php55 install php-gd php-pdo php-mysql # yum install mysql # yum install mariadb-server # systemctl start mariadb # mysql_secure_installation # service httpd start # yum install phpmyadmin or yum --enablerepo=remi install phpmyadmin 

错误

 Error: Package: php-mbstring-5.4.34-1.el7.remi.x86_64 (remi) Requires: php-common(x86-64) = 5.4.34-1.el7.remi Installed: php-common-5.5.18-1.el7.remi.x86_64 (@remi-php55) php-common(x86-64) = 5.5.18-1.el7.remi Available: php-common-5.4.16-21.el7.x86_64 (base) php-common(x86-64) = 5.4.16-21.el7 Available: php-common-5.4.16-23.el7_0.x86_64 (updates) php-common(x86-64) = 5.4.16-23.el7_0 Available: php-common-5.4.16-23.el7_0.1.x86_64 (updates) php-common(x86-64) = 5.4.16-23.el7_0.1 Available: php-common-5.4.16-23.el7_0.3.x86_64 (updates) php-common(x86-64) = 5.4.16-23.el7_0.3 Available: php-common-5.4.33-2.el7.remi.x86_64 (remi) php-common(x86-64) = 5.4.33-2.el7.remi Available: php-common-5.4.34-1.el7.remi.x86_64 (remi) php-common(x86-64) = 5.4.34-1.el7.remi Error: Package: php-recode-5.4.34-1.el7.remi.x86_64 (remi) Requires: php-common(x86-64) = 5.4.34-1.el7.remi Installed: php-common-5.5.18-1.el7.remi.x86_64 (@remi-php55) php-common(x86-64) = 5.5.18-1.el7.remi Available: php-common-5.4.16-21.el7.x86_64 (base) php-common(x86-64) = 5.4.16-21.el7 Available: php-common-5.4.16-23.el7_0.x86_64 (updates) php-common(x86-64) = 5.4.16-23.el7_0 Available: php-common-5.4.16-23.el7_0.1.x86_64 (updates) php-common(x86-64) = 5.4.16-23.el7_0.1 Available: php-common-5.4.16-23.el7_0.3.x86_64 (updates) php-common(x86-64) = 5.4.16-23.el7_0.3 Available: php-common-5.4.33-2.el7.remi.x86_64 (remi) php-common(x86-64) = 5.4.33-2.el7.remi Available: php-common-5.4.34-1.el7.remi.x86_64 (remi) php-common(x86-64) = 5.4.34-1.el7.remi Error: Package: php-tidy-5.4.34-1.el7.remi.x86_64 (remi) Requires: php-common(x86-64) = 5.4.34-1.el7.remi Installed: php-common-5.5.18-1.el7.remi.x86_64 (@remi-php55) php-common(x86-64) = 5.5.18-1.el7.remi Available: php-common-5.4.16-21.el7.x86_64 (base) php-common(x86-64) = 5.4.16-21.el7 Available: php-common-5.4.16-23.el7_0.x86_64 (updates) php-common(x86-64) = 5.4.16-23.el7_0 Available: php-common-5.4.16-23.el7_0.1.x86_64 (updates) php-common(x86-64) = 5.4.16-23.el7_0.1 Available: php-common-5.4.16-23.el7_0.3.x86_64 (updates) php-common(x86-64) = 5.4.16-23.el7_0.3 Available: php-common-5.4.33-2.el7.remi.x86_64 (remi) php-common(x86-64) = 5.4.33-2.el7.remi Available: php-common-5.4.34-1.el7.remi.x86_64 (remi) php-common(x86-64) = 5.4.34-1.el7.remi Error: Package: php-mcrypt-5.4.34-1.el7.remi.x86_64 (remi) Requires: php-common(x86-64) = 5.4.34-1.el7.remi Installed: php-common-5.5.18-1.el7.remi.x86_64 (@remi-php55) php-common(x86-64) = 5.5.18-1.el7.remi Available: php-common-5.4.16-21.el7.x86_64 (base) php-common(x86-64) = 5.4.16-21.el7 Available: php-common-5.4.16-23.el7_0.x86_64 (updates) php-common(x86-64) = 5.4.16-23.el7_0 Available: php-common-5.4.16-23.el7_0.1.x86_64 (updates) php-common(x86-64) = 5.4.16-23.el7_0.1 Available: php-common-5.4.16-23.el7_0.3.x86_64 (updates) php-common(x86-64) = 5.4.16-23.el7_0.3 Available: php-common-5.4.33-2.el7.remi.x86_64 (remi) php-common(x86-64) = 5.4.33-2.el7.remi Available: php-common-5.4.34-1.el7.remi.x86_64 (remi) php-common(x86-64) = 5.4.34-1.el7.remi Error: Package: php-bcmath-5.4.34-1.el7.remi.x86_64 (remi) Requires: php-common(x86-64) = 5.4.34-1.el7.remi Installed: php-common-5.5.18-1.el7.remi.x86_64 (@remi-php55) php-common(x86-64) = 5.5.18-1.el7.remi Available: php-common-5.4.16-21.el7.x86_64 (base) php-common(x86-64) = 5.4.16-21.el7 Available: php-common-5.4.16-23.el7_0.x86_64 (updates) php-common(x86-64) = 5.4.16-23.el7_0 Available: php-common-5.4.16-23.el7_0.1.x86_64 (updates) php-common(x86-64) = 5.4.16-23.el7_0.1 Available: php-common-5.4.16-23.el7_0.3.x86_64 (updates) php-common(x86-64) = 5.4.16-23.el7_0.3 Available: php-common-5.4.33-2.el7.remi.x86_64 (remi) php-common(x86-64) = 5.4.33-2.el7.remi Available: php-common-5.4.34-1.el7.remi.x86_64 (remi) php-common(x86-64) = 5.4.34-1.el7.remi 

线索出现在错误信息中:

 Error: Package: php-mbstring-5.4.34-1.el7.remi.x86_64 (remi) Requires: php-common(x86-64) = 5.4.34-1.el7.remi Installed: php-common-5.5.18-1.el7.remi.x86_64 (@remi-php55) php-common(x86-64) = 5.5.18-1.el7.remi Error: Package: php-recode-5.4.34-1.el7.remi.x86_64 (remi) Requires: php-common(x86-64) = 5.4.34-1.el7.remi Installed: php-common-5.5.18-1.el7.remi.x86_64 (@remi-php55) 

您正在从remi repo运行php55,但phpmyadmin依赖于php54组件。 我不确定最好的方法,但你有几个选项。 你可以尝试安装php-mbstring和php-recode的php55版本。 但是,猜测你可能会得到相同的错误,因为它需要该版本的依赖关系。

你可以尝试使用PHP 5.4而不是PHP 5.5,如果你不需要PHP 5.5的任何特定的原因,这可能是最好的,因为它可能是比PHP 5.5更稳定。

如果你需要 php 5.5有一个看看是否有更新版本的phpmyadmin支持php5.5,它可能无法在存储库中,但你可能需要从源代码构build。 对不起,我没有所有的答案,我只是看到了什么看起来像一个明显的问题,并认为我会指出。 你可以这样做:

 yum provides phpmyadmin 

这应该显示你已经安装的回购站有什么select,如果你没有在/etc/yum.repo.d/ conf文件中设置启用,你可能需要添加enable repo命令(假设他们没有在CentOS 7中移动 – 我还没有尝试过)。

我希望有帮助!