安裝 php-gd 時出錯

安裝 php-gd 時出錯

我使用 remi repo 安裝了 php,現在我想安裝 php gd。我嘗試為我的 CentOS 7 安裝 php-gd 但出現此錯誤:

sudo yum install php-gd
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: repos.redrockhost.com
 * epel: mirrors.syringanetworks.net
 * extras: centos.sonn.com
 * updates: mirror.compevo.com
Resolving Dependencies
--> Running transaction check
---> Package php-gd.x86_64 0:5.4.16-23.el7_0.3 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-23.el7_0.3 for package: php-gd-5.4.16-23.el7_0.3.x86_64
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.4.16-23.el7_0.3.x86_64
--> Running transaction check
---> Package php-gd.x86_64 0:5.4.16-23.el7_0.3 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-23.el7_0.3 for package: php-gd-5.4.16-23.el7_0.3.x86_64
---> Package t1lib.x86_64 0:5.1.2-14.el7 will be installed
--> Finished Dependency Resolution
Error: Package: php-gd-5.4.16-23.el7_0.3.x86_64 (base)
           Requires: php-common(x86-64) = 5.4.16-23.el7_0.3
           Installed: php-common-5.5.17-2.el7.remi.x86_64 (@remi-php55)
               php-common(x86-64) = 5.5.17-2.el7.remi
           Available: php-common-5.4.16-23.el7_0.3.x86_64 (base)
               php-common(x86-64) = 5.4.16-23.el7_0.3
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

有人可以幫我解決這個問題嗎?

答案1

問題似乎是,如果您還沒有啟用 remi-php55 存儲庫,您可能也需要啟用 - 我很確定您會運行類似的命令yum install php-gd --enablerepo=remi,remi-php55

相關內容