没有可用的Yum上的PHP-GD包…但它是

到目前为止我所做的

  • 安装了CentOS 6.5 x64
  • 安装了cPanel
  • 将REMI和EPEL存储库添加到系统中
  • 试过yum --enablerepo=remi,epel install php-gd

响应:

没有包php-gd可用。

完全响应

 root@hostname [~]# yum --enablerepo=remi install php-gd --verbose Loading "fastestmirror" plugin Loading "security" plugin Config time: 0.042 Yum Version: 3.2.29 Setting up Package Sacks Loading mirror speeds from cached hostfile * base: centos.mirror.crucial.com.au * epel: mirror.optus.net * extras: centos.mirror.crucial.com.au * remi: remi.kazukioishi.net * updates: centos.mirror.crucial.com.au pkgsack time: 4.430 rpmdb time: 0.000 Setting up Install Process Checking for virtual provide or file-provide for php-gd No package php-gd available. Error: Nothing to do root@hostname [~]# 

pkgs.org上的实际软件包列表中另有说明:

  • http://pkgs.org/centos-6/remi-x86_64/php-gd-5.4.27-1.el6.remi.x86_64.rpm.html

任何人都可以解释为什么一个可用的包没有被拿起作为可用?

这不是一个Centos / Linux / Yum的问题。

要在cPanel上启用PHP-GD,您必须通过cPanel的WHM界面并通过以下菜单启用它:

首页>软件> EasyApache(Apache Update)

并在“详尽的选项列表”上启用GD模块。
然后,cPanel将使用更新的模块重buildPHP和Apache。

你可以使用这个回购,它会工作。

[CentOS] name = CentOS baseurl = http://mirror.centos.org/centos-6/6.5/os/x86_64/ enabled = 1 gpgcheck = 1 gpgkey = http://mirror.centos.org/centos-6/ 6.5 / OS / x86_64的/ RPM-GPG-KEY-的CentOS-6

我不认为你有configuration的回购包。 如果你在pkgs.org上看到这个包,这并不意味着你的回购包含它。 你必须检查你的储存库的url。 (从baseurl链接 – 在我的例子中)