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


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版本。

Linux yum-update php centos

windf00 8 years, 9 months ago

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

坚硬的蛋壳 answered 8 years, 9 months ago

yum install php-gd --skip-broken
运行这个就没问题了

可爱的梨梨花 answered 8 years, 9 months ago

Your Answer