尝试安装apc扩展名为php时缺less依赖项问题

我试图根据这个教程来安装apc扩展php: http : //2bits.com/articles/installing-php-apc-gnulinux-centos-5.html,但不能成功运行第一个命令。 这是我得到的:

Loaded plugins: fastestmirror Repository base is listed more than once in the configuration Repository updates is listed more than once in the configuration Repository extras is listed more than once in the configuration Repository centosplus is listed more than once in the configuration Repository contrib is listed more than once in the configuration Determining fastest mirrors Plesk | 951 B 00:00 Plesk-Third-Party | 951 B 00:00 base | 1.1 kB 00:00 extras | 2.1 kB 00:00 updates | 1.9 kB 00:00 Excluding Packages in global exclude list Finished Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package php-pear.noarch 1:1.4.9-6.el5 set to be updated --> Processing Dependency: php-devel for package: php-pear --> Running transaction check ---> Package php-devel.x86_64 0:5.1.6-27.el5_5.3 set to be updated --> Processing Dependency: php = 5.1.6-27.el5_5.3 for package: php-devel --> Processing Dependency: autoconf for package: php-devel --> Processing Dependency: automake for package: php-devel --> Running transaction check ---> Package autoconf.noarch 0:2.59-12 set to be updated --> Processing Dependency: imake for package: autoconf ---> Package automake.noarch 0:1.9.6-2.3.el5 set to be updated ---> Package php-devel.x86_64 0:5.1.6-27.el5_5.3 set to be updated --> Processing Dependency: php = 5.1.6-27.el5_5.3 for package: php-devel --> Running transaction check ---> Package imake.x86_64 0:1.0.2-3 set to be updated ---> Package php-devel.x86_64 0:5.1.6-27.el5_5.3 set to be updated --> Processing Dependency: php = 5.1.6-27.el5_5.3 for package: php-devel --> Finished Dependency Resolution php-devel-5.1.6-27.el5_5.3.x86_64 from base has depsolving problems --> Missing Dependency: php = 5.1.6-27.el5_5.3 is needed by package php-devel-5.1.6-27.el5_5.3.x86_64 (base) Error: Missing Dependency: php = 5.1.6-27.el5_5.3 is needed by package php-devel-5.1.6-27.el5_5.3.x86_64 (base) You could try using --skip-broken to work around the problem You could try running: package-cleanup --problems package-cleanup --dupes rpm -Va --nofiles --nodigest The program package-cleanup is found in the yum-utils package. 

有没有人这两个错误意味着什么,我应该如何解决?

 php-devel-5.1.6-27.el5_5.3.x86_64 from base has depsolving problems --> Missing Dependency: php = 5.1.6-27.el5_5.3 is needed by package php-devel-5.1.6-27.el5_5.3.x86_64 (base) Error: Missing Dependency: php = 5.1.6-27.el5_5.3 is needed by package php-devel-5.1.6-27.el5_5.3.x86_64 (base) 

我想这就是为什么我不能在我的服务器上安装apc的原因。 服务器运行centos 5.6,php 5.3.8。 控制面板是plesk 10。

你是如何安装php-5.3.8的? php-devel包必须与您安装的php版本匹配。 先安装相应的php-devel,然后再安装php-pear。 不过,我不知道这个软件包是否会寻找特定版本的php。 如果是这样,你需要find适合版本的php-pear包。