在CentOS上安装phpmyadmin时出错

时间:2014-07-19 13:23:45

标签: linux phpmyadmin centos

当我尝试使用此操作在CentOS 6.5 VPS上安装phpmyadmin时,我收到此错误。

命令:

sudo yum install phpmyadmin

错误:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.solarvps.com
 * epel: epel.mirror.constant.com
 * extras: mirror.wiredtree.com
 * rpmforge: repoforge.mirror.constant.com
 * updates: mirrors.lga7.us.voxel.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package phpmyadmin.noarch 0:2.11.11.3-2.el6.rf will be installed
--> Processing Dependency: php-mbstring >= 4.1.0 for package: phpmyadmin-2.11.11.3-2.el6.rf.noarch
--> Running transaction check
---> Package php-mbstring.x86_64 0:5.3.3-27.el6_5 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-27.el6_5 for package: php-mbstring-5.3.3-27.el6_5.x86_64
--> Finished Dependency Resolution
Error: Package: php-mbstring-5.3.3-27.el6_5.x86_64 (updates)
           Requires: php-common(x86-64) = 5.3.3-27.el6_5
           Installed: php-common-5.4.30-1.el6.remi.x86_64 (@remi)
               php-common(x86-64) = 5.4.30-1.el6.remi
           Available: php-common-5.3.3-26.el6.x86_64 (base)
               php-common(x86-64) = 5.3.3-26.el6
           Available: php-common-5.3.3-27.el6_5.x86_64 (updates)
               php-common(x86-64) = 5.3.3-27.el6_5
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

有人请帮助。 Thanx提前

2 个答案:

答案 0 :(得分:1)

您已从其他来源(@remi)安装了比官方(基础)存储库提供的更新的PHP版本(5.4.30-1)。现在你正在尝试安装phpMyAdmin包,这取决于php-mbstring。 php-mbstring是这里的实际问题 - 它是自动安装的,因为phpmyadmin依赖于它,但您尝试安装的版本与PHP安装的其余部分不兼容。 / p>

解决方案很简单,因为remi还提供了phpmyadmin(比你更新版本的版本,也是尝试安装的!)。只需像安装PHP一样从remi存储库安装phpmyadmin和php-common。如果您忘了,http://blog.famillecollet.com/pages/Config-en有一些说明,但您已设法安装已升级的PHP,因此您应该能够轻松安装remi phpmyadmin。

... OR

http://www.phpmyadmin.netuncompress it将phpMyAdmin下载到您的网络根目录并忘记该程序包。 php-mbstring无论如何都不是运行应用程序所必需的,所以只要你meet the other requirements,你甚至不用担心那个部分。

答案 1 :(得分:1)

您从remi存储库安装了php5.4。

phpmyadmin需要php才能工作;但是你从官方存储库安装phpmyadmin,phpmyadmin版本需要php5.3。

我想你不想回到php5.3,所以只需运行这个命令:

yum --enablerepo=remi install phpmyadmin

如果您没有向您的CentOS添加remi存储库,则必须先运行:

sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm