我的服务器上运行的是 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 服务器上可用。我无法从服务器中删除或移除它。我总是收到此消息:软件包 php-gd 可用,但未安装。
有人可以帮我弄这个吗?
提前致谢。
答案1
您从remi-test
存储库安装了 PHP。默认情况下,它处于禁用状态。如果您想从存储库安装更多 PHP 包,则应重新启用该存储库。