【问题标题】:Yum install on CentOS 6.2 [closed]在 CentOS 6.2 上安装 Yum [关闭]
【发布时间】:2012-03-14 18:18:30
【问题描述】:

我无法安装任何 php 扩展

已启用 Epel 存储库

yum repolist 节目

repo id                                repo name                                                                      status
base                                   CentOS-6 - Base                                                                  5,932+362
epel                                   Extra Packages for Enterprise Linux 6 - x86_64                                 5,867+1,143
extras                                 CentOS-6 - Extras                                                                        4
updates                                CentOS-6 - Updates                                                                  334+83
repolist: 12,137

yum 安装 php-soap 要么 yum --enablerepo=epel install php-soap 输出:

    Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.dedipower.com
 * epel: mirror01.th.ifl.net
 * extras: mirrors.dedipower.com
 * updates: mirror.as29550.net
Setting up Install Process
No package php-soap available.
Error: Nothing to do

【问题讨论】:

  • 你会在serverfault.com获得更好的运气
  • 你尝试更新 Yum 了吗?

标签: php centos yum


【解决方案1】:

您应该检查您的 /etc/yum.conf 文件。 可能有一行看起来像: 排除=php* 这将阻止您安装任何 PHP 扩展。

如果您使用 DirectAdmin,您可能应该检查一下: http://woshka.com/blog/linux/centos/direct-admin-control-panel/compile-and-enable-soap-into-php-with-directadmin-controlpanel-custombuild.html

【讨论】:

  • 您还可以使用yum --disableexcludes=all … 从命令行禁用排除,以进行一次性运行。但是,您还应该检查启用排除的原因。就我而言,这是因为启用了 WHM/cPanel 并安装了自定义 PHP 包。我可以通过从pecl.php.net 将扩展程序 (APC) 下载为 tar.gz 来规避这个问题,然后在命令行上构建和编译扩展程序(没有 yum)。
  • 谢谢,这是一个救生员:)
猜你喜欢
  • 2012-09-10
  • 2023-03-11
  • 2013-04-22
  • 2020-10-20
  • 2011-01-08
  • 1970-01-01
  • 2013-01-04
  • 2022-01-08
  • 2016-10-11
相关资源
最近更新 更多