2014-07-19 59 views
1

当我试着在CentOS 6.5 VPS上安装phpmyadmin时,我得到这个错误。在CentOS上安装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提前

回答

1

您已经从官方(基地)存储库提供的另一个来源(@remi)安装了更新的PHP版本(5.4.30-1)。现在你试图安装phpMyAdmin包,它依赖于php-mbstring。 php-mbstring是这里的实际问题 - 它会自动安装,因为phpmyadmin依赖于它,但是您尝试安装的版本与其他PHP安装不兼容。

这个解决方案很简单,因为remi也提供了phpmyadmin(比你试图安装的还要新版本更多!)。就像安装PHP一样,只需从remi存储库安装phpmyadmin和php-common即可。如果您忘记了http://blog.famillecollet.com/pages/Config-en,有一些说明,但您已经设法安装升级的PHP,因此您应该能够非常容易地安装remi phpmyadmin。

OR ....

下载phpMyAdmin的从http://www.phpmyadmin.netuncompress it到Web根,忘了包。 php-mbstring不是严格要求运行该应用程序,所以你甚至不需要担心该部分只要你meet the other requirements

1

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

phpmyadmin需要php的工作;但是您正在从官方存储库安装phpmyadmin,并且phpmyadmin版本需要php5.3。

我猜你不想回去PHP5.3,所以只运行这个命令:

yum --enablerepo=remi install phpmyadmin 

如果没有雷米库添加到您的CentOS,你将不得不以前运行:

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 
+0

此解决方案完美地为我工作。谢谢米克尔! – serginator