linux - CentOS6.6下yum安装PHP的gd库失败?

 哎呦我去2502859031 发布于 2022-11-21 10:26

CentOS6.6下yum安装PHP默认版本5.3的,为了安装高一点的PHP版本,使用自定义的yum源:remi源,启用remi-php56,安装php-gd扩展的时候报错:
Error: Package: php-gd-5.6.11-1.el6.remi.x86_64 (remi-php56) Requires: gd-last(x86-64) >= 2.1.1 Error: Package: php-gd-5.6.11-1.el6.remi.x86_64 (remi-php56) Requires: libgd.so.3()(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

安装其它的扩展没有问题比如php-mysql,php-redis等。

抱着试一试的心态,禁用remi源,运行 yum install php-gd ,跟预测的一样肯定报错,因为PHP安装的版本是5.6.10 ,现在yum默认找的是php5.3版本。

2 个回答
  • yum 源问题 选择的yum源和系统版本对应不上
    yum clean all
    rpm --rebuilddb
    yum update
    或者换一个yum源

    2022-11-21 10:30 回答
  • yum install php-gd --skip-broken
    运行这个就没问题了

    2022-11-21 10:30 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有