yum 安装 php53-devel.x86_64 失败

yum 安装 php53-devel.x86_64 失败

我需要在 Fedora 服务器上重新编译 php,因为我需要使用 --enable-zip 标志。尝试安装 devel 包时,我收到以下消息。这是在“yum clean all”之后:

yum install php53-devel.x86_64
Loaded plugins: rhnplugin, security
rhel-x86_64-server-5                                                                  | 1.4    kB     00:00     
rhel-x86_64-server-5/primary                                                          | 4.9 MB     00:00     
rhel-x86_64-server-5                                                                             14161/14161
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php53-devel.x86_64 0:5.3.3-13.el5_8 set to be updated
--> Processing Dependency: php53 = 5.3.3-13.el5_8 for package: php53-devel
--> Finished Dependency Resolution
php53-devel-5.3.3-13.el5_8.x86_64 from rhel-x86_64-server-5 has depsolving problems
  --> Missing Dependency: php53 = 5.3.3-13.el5_8 is needed by package php53-devel-5.3.3-13.el5_8.x86_64 (rhel-x86_64-server-5)
Error: Missing Dependency: php53 = 5.3.3-13.el5_8 is needed by package php53-devel-5.3.3-13.el5_8.x86_64 (rhel-x86_64-server-5)
 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

‘yum repolist’的输出:

# yum repolist
Loaded plugins: rhnplugin, security
repo id                                               repo name                                                                           status
rhel-x86_64-server-5                                  Red Hat Enterprise Linux (v. 5 for 64-bit x86_64)                                   enabled: 14,161
repolist: 14,161

答案1

确保此计算机的 Red Hat 订阅处于活动状态。没有有效订阅通常是导致此问题的原因。(如果主动,请致电 Red Hat。)

如果您正在编译自己的 PHP 版本,则无需执行任何上述操作。

答案2

如果您已经编译了自己的 PHP 并且它是一个 RPM 包,请从 YUM 命令中排除有问题的包(使用 --exclude=packagename)或者只运行新编译的 PHP 的 rpm 安装。

答案3

使用另一个 repo 来安装 PHP 和 php-dev 包。我建议使用原子

相关内容