Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/250.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Centos 7-错误:包:php-gd-5.3.3-27.el6_5.2.x86_64(更新)_Php_Unix_Centos_Digital Ocean - Fatal编程技术网

Centos 7-错误:包:php-gd-5.3.3-27.el6_5.2.x86_64(更新)

Centos 7-错误:包:php-gd-5.3.3-27.el6_5.2.x86_64(更新),php,unix,centos,digital-ocean,Php,Unix,Centos,Digital Ocean,我在尝试安装phpgd.x86_64library时遇到了这个问题 sudo yum install php-gd.x86_64 然后我收到了这个错误信息 Error: Package: php-gd-5.3.3-27.el6_5.2.x86_64 (updates) Requires: php-common(x86-64) = 5.3.3-27.el6_5.2 Installed: php-common-5.4.30-1.el6.remi.x86_

我在尝试安装
phpgd.x86_64
library时遇到了这个问题

sudo yum install php-gd.x86_64
然后我收到了这个错误信息

Error: Package: php-gd-5.3.3-27.el6_5.2.x86_64 (updates)
           Requires: php-common(x86-64) = 5.3.3-27.el6_5.2
           Installed: php-common-5.4.30-1.el6.remi.x86_64 (@remi)
               php-common(x86-64) = 5.4.30-1.el6.remi
           Available: php-common-5.3.3-26.el6.x86_64 (base)
               php-common(x86-64) = 5.3.3-26.el6
           Available: php-common-5.3.3-27.el6_5.x86_64 (updates)
               php-common(x86-64) = 5.3.3-27.el6_5
           Available: php-common-5.3.3-27.el6_5.1.x86_64 (updates)
               php-common(x86-64) = 5.3.3-27.el6_5.1
           Available: php-common-5.3.3-27.el6_5.2.x86_64 (updates)
               php-common(x86-64) = 5.3.3-27.el6_5.2
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

您已经安装了来自remi存储库的php公共包。这是一个比CentOS 7更新的版本。php gd的CentOS 7软件包需要CentOS 7 php common软件包,而不是php common的remi版本

您可以查看remi存储库是否有一个php gd包(尽管我想如果它有,可能已经出现了),或者您可以删除remi php common(可能还有该repo中的许多其他包),并安装CenOS 7 php common(以及相关的)包


或者,您可以尝试根据已安装的php版本重新构建CentOS 7 php gd源rpm。

看起来您是从一个非标准的repo安装了php 5.4,该repo只将包命名为“php”,而不是类似“php54”的名称,这是一件坏事。这个定制的repo似乎没有提供php-gd包,您的系统可以找到的惟一php-gd来自只提供5.3版本的repo。你给自己挖了一个好洞,我建议你发帖子,因为这与编程无关。