2

我尝试在我的服务器上安装 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
4

1 回答 1

3

我面临同样的问题

通过这些命令添加 repo "remi"

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

并通过以下方式启用 remi repo

sudo vim /etc/yum.repos.d/remi.repo

通过设置启用=1

现在试试

yum install php-devel
于 2014-01-17T13:12:22.657 回答