2012-02-24 125 views
3

我不能安裝任何PHP擴展百勝安裝在CentOS 6.2

EPEL軟件庫啓用

百勝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 

蔭安裝PHP皁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 
+1

您將有http://serverfault.com – 2012-02-24 09:33:17

+0

一個更好的運氣沒有ü嘗試做百勝更新? – Rocky 2012-02-24 09:35:05

回答

15

您應該檢查/etc/yum.conf文件。 可能有這樣的行: exclude = php * 這將阻止您安裝任何PHP擴展。

如果你使用的管理嚮導,你應該檢查了這一點: http://woshka.com/blog/linux/centos/direct-admin-control-panel/compile-and-enable-soap-into-php-with-directadmin-controlpanel-custombuild.html

+0

謝謝!排除= php *幫助 – sbxmal 2012-02-24 10:02:42

+0

您也可以使用'yum --disableexcludes = all ...'在命令行中禁用排除項,以進行一次性運行。但是,您還應該檢查排除功能啓用的原因。就我而言,這是因爲啓用了WHM/cPanel並且已經安裝了自定義PHP包。我可以通過從http://pecl.php.net/下載擴展名(APC)作爲tar.gz,然後在命令行(不包含'yum')上構建和編譯擴展來解決這個問題。 – thirdender 2013-06-03 23:06:31

+0

謝謝,那是一個救命恩人:) – 2014-05-05 10:41:10