linux - CentOS6.6下yum安装PHP的gd库失败?
巴扎黑
巴扎黑 2017-04-10 15:48:52
0
2
431

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 install php-gd --skip-broken
运行这个就没问题了

    巴扎黑

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

      최신 다운로드
      더>
      웹 효과
      웹사이트 소스 코드
      웹사이트 자료
      프론트엔드 템플릿
      회사 소개 부인 성명 Sitemap
      PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!