无法在CentOS上安装php-intl

当我运行:

yum install php-intl 

我得到这个错误:

 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.as29550.net * epel: ftp.nluug.nl * extras: mirror.as29550.net * updates: mirror.for.me.uk Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package php-intl.x86_64 0:5.3.3-22.el6 will be installed --> Processing Dependency: php-common(x86-64) = 5.3.3-22.el6 for package: php-intl-5.3.3-22.el6.x86_64 --> Finished Dependency Resolution Error: Package: php-intl-5.3.3-22.el6.x86_64 (base) Requires: php-common(x86-64) = 5.3.3-22.el6 Installed: php-common-5.3.14-1.el6.remi.x86_64 (@remi) php-common(x86-64) = 5.3.14-1.el6.remi Available: php-common-5.3.3-22.el6.x86_64 (base) php-common(x86-64) = 5.3.3-22.el6 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest 

任何想法如何解决这个问题?

我试过了:

 yum install php-common-5.3.3-22.el6.x86_64 

它说它已经安装。

尝试禁用repo remi,删除已安装的php-comon与yum remove php-common

然后安装:

yum install php-common php-intl

你可以把输出吗?

php -v

问题似乎是,您正在从http://rpms.famillecollet.com/el5.i386/上的remi存储库运行非标准版本的PHP。 真正的答案是:不要那样做; 如果你需要一个更新的PHP,升级到CentOS 6.但是这对你现在可能没有什么帮助,但是如果你真的不需要更新的PHP,那么可以按照B14D3的build议在他的答案中降级。

假设你确实需要remi PHP,那么在remi版本库中有一个正确版本的php-intl包; 我不太清楚为什么你的yum没有select它。 如果您查看/etc/yum.repos.d中的相关文件,是否可能导致基本/更新回购重写remi的priority=语句? 或者是禁用的存储库( enabled=0 )? 你可以发布相关的/etc/yum.repos.d文件的内容吗?