我尝试在我的服务器上安装php-devel,我收到此错误
# 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 :(得分:3)
我遇到了同样的问题
通过这些命令添加repo“remi”
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
并通过
启用remi reposudo vim /etc/yum.repos.d/remi.repo
设置enabled = 1
现在尝试
yum install php-devel