2012-10-30 89 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