2012-10-30 90 views
2

我嘗試我的服務器上安裝PHP-devel的,我得到這個錯誤安裝PHP-devel的CentOS的

# yum install php-devel 
Loaded plugins: fastestmirror 
Loading mirror speeds from cached hostfile 
* base: centos.mirror.transip.nl 
* extras: centos.mirror.transip.nl 
* updates: centos.mirror.transip.nl 
Excluding Packages in global exclude list 
Finished 
Setting up Install Process 
No package php-devel available. 
Nothing to do 

問題是什麼?

這是我的版本

GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu) 
Copyright (C) 2005 Free Software Foundation, Inc. 

PHP 5.3.16 (cli) (built: Sep 16 2012 06:57:51) 
Copyright (c) 1997-2012 The PHP Group 
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies 
+0

的[安裝PHP-devel的-5.1.6-27.el5 \ _5.3.x86 \ _64](http://stackoverflow.com/questions/7723191/可能重複安裝-php-devel-5-1-6-27-el5-5-3-x86-64) – Layke

+0

那裏的答案沒有幫助我 – user1758424

+0

你是否嘗試重新安裝php-common並確保你已經運行了百勝更新 – Layke

回答

3

我面臨着同樣的問題

通過

sudo vim /etc/yum.repos.d/remi.repo 
加回購 「雷米」 通過這些命令

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm</code> 
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm 
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm 

並啓用雷米回購

通過設置enabled = 1

現在就來試試

yum install php-devel 
+0

我已經這樣做了,它聲明包仍然不可用。 – James