在我的服务器上运行PHP 5.5.1。 我想安装php-gd ,但是当我试图安装它时,它总是说:
yum install php-gd Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.supportex.net * epel: mirror.1000mbps.com * extras: mirrors.supportex.net * updates: mirrors.supportex.net * webtatic: uk.repo.webtatic.com Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package php-gd.x86_64 0:5.3.3-23.el6_4 will be installed --> Processing Dependency: php-common(x86-64) = 5.3.3-23.el6_4 for package: php-gd-5.3.3-23.el6_4.x86_64 --> Finished Dependency Resolution Error: Package: php-gd-5.3.3-23.el6_4.x86_64 (updates) Requires: php-common(x86-64) = 5.3.3-23.el6_4 Installed: php-common-5.5.1-1.el6.remi.x86_64 (@remi-test) php-common(x86-64) = 5.5.1-1.el6.remi Available: php-common-5.3.3-22.el6.x86_64 (base) php-common(x86-64) = 5.3.3-22.el6 Available: php-common-5.3.3-23.el6_4.x86_64 (updates) php-common(x86-64) = 5.3.3-23.el6_4 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
似乎php-gd包在服务器上可用于php 5.3。 我无法删除或从服务器中删除它。 我会一直收到这样的信息:Package(s)php-gd available,但没有安装。
有人可以帮我弄这个吗?
提前致谢。
您从remi-test存储库安装了PHP。 它默认是禁用的。 如果你想从中安装更多的PHP包,你应该重新启用这个库。