2016-04-05 177 views
0

我無法在centos上安裝GD和Freetype for PHP。無法在centos上安裝php-gd和帶有yum的freetype

我讀過這樣一個Install GD library and freetype on Linux 很多類似的問題,但我仍然沒有運氣..

[[email protected] modules]# sudo yum install php-gd 
    Loaded plugins: fastestmirror, priorities, replace, security 
    Setting up Install Process 
    Loading mirror speeds from cached hostfile 
    * base: mirror.overthewire.com.au 
    * extras: mirror.nsw.coloau.com.au 
    * ius: ius.mirror.digitalpacific.com.au 
    * remi-php56: mirror.innosol.asia 
    * rpmforge: mirror.ventraip.net.au 
    * updates: mirror.overthewire.com.au 
    Resolving Dependencies 
    --> Running transaction check 
    ---> Package php-gd.x86_64 0:5.6.20-1.el6.remi will be installed 
    --> Processing Dependency: gd-last(x86-64) >= 2.1.1 for package: php-gd-5.6.20-1.el6.remi.x86_64 
    --> Processing Dependency: libvpx.so.1()(64bit) for package: php-gd-5.6.20-1.el6.remi.x86_64 
    --> Processing Dependency: libgd.so.3()(64bit) for package: php-gd-5.6.20-1.el6.remi.x86_64 
    --> Running transaction check 
    ---> Package libvpx.x86_64 0:1.3.0-5.el6_5 will be installed 
    ---> Package php-gd.x86_64 0:5.6.20-1.el6.remi will be installed 
    --> Processing Dependency: gd-last(x86-64) >= 2.1.1 for package: php-gd-5.6.20-1.el6.remi.x86_64 
    --> Processing Dependency: libgd.so.3()(64bit) for package: php-gd-5.6.20-1.el6.remi.x86_64 
    --> Finished Dependency Resolution 
    Error: Package: php-gd-5.6.20-1.el6.remi.x86_64 (remi-php56) 
       Requires: gd-last(x86-64) >= 2.1.1 
    Error: Package: php-gd-5.6.20-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 
    sudo apt-get install freetype*[[email protected] modules]# sudo apt-get install freetype* 
    sudo: apt-get: command not found 

    [[email protected] modules]# sudo yum install freetype* 
    Loaded plugins: fastestmirror, priorities, replace, security 
    Setting up Install Process 
    Loading mirror speeds from cached hostfile 
    * base: mirror.overthewire.com.au 
    * extras: mirror.nsw.coloau.com.au 
    * ius: ius.mirror.digitalpacific.com.au 
    * remi-php56: remi.conetix.com.au 
    * rpmforge: repoforge.mirror.digitalpacific.com.au 
    * updates: mirror.overthewire.com.au 
    Package freetype-2.3.11-15.el6_6.1.x86_64 already installed and latest version 
    Package freetype-devel-2.3.11-15.el6_6.1.x86_64 already installed and latest version 
    Package freetype-demos-2.3.11-15.el6_6.1.x86_64 already installed and latest version 
    Nothing to do 

    [[email protected] modules]# service httpd restart 
    Stopping httpd:           [ OK ] 
    Starting httpd:           [ OK ] 

    [[email protected] modules]# sudo yum install php56-gd 
    Loaded plugins: fastestmirror, priorities, replace, security 
    Setting up Install Process 
    Loading mirror speeds from cached hostfile 
    * base: mirror.overthewire.com.au 
    * extras: mirror.nsw.coloau.com.au 
    * ius: syd.mirror.rackspace.com 
    * remi-php56: remi.conetix.com.au 
    * rpmforge: mirror.ventraip.net.au 
    * updates: mirror.overthewire.com.au 
    No package php56-gd available. 
    Error: Nothing to do 

[[email protected] modules]# yum install php-gd --enablerepo=remi,remi-php56 
Loaded plugins: fastestmirror, priorities, replace, security 
Setting up Install Process 
Loading mirror speeds from cached hostfile 
* base: mirror.overthewire.com.au 
* extras: mirror.nsw.coloau.com.au 
* ius: ius.mirror.digitalpacific.com.au 
* remi-php56: remi.conetix.com.au 
* rpmforge: repoforge.mirror.digitalpacific.com.au 
* updates: mirror.overthewire.com.au 
Resolving Dependencies 
--> Running transaction check 
---> Package php-gd.x86_64 0:5.6.20-1.el6.remi will be installed 
--> Processing Dependency: gd-last(x86-64) >= 2.1.1 for package: php-gd-5.6.20-1.el6.remi.x86_64 
--> Processing Dependency: libvpx.so.1()(64bit) for package: php-gd-5.6.20-1.el6.remi.x86_64 
--> Processing Dependency: libgd.so.3()(64bit) for package: php-gd-5.6.20-1.el6.remi.x86_64 
--> Running transaction check 
---> Package libvpx.x86_64 0:1.3.0-5.el6_5 will be installed 
---> Package php-gd.x86_64 0:5.6.20-1.el6.remi will be installed 
--> Processing Dependency: gd-last(x86-64) >= 2.1.1 for package: php-gd-5.6.20-1.el6.remi.x86_64 
--> Processing Dependency: libgd.so.3()(64bit) for package: php-gd-5.6.20-1.el6.remi.x86_64 
--> Finished Dependency Resolution 
Error: Package: php-gd-5.6.20-1.el6.remi.x86_64 (remi-php56) 
      Requires: gd-last(x86-64) >= 2.1.1 
Error: Package: php-gd-5.6.20-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 

我的web應用程序仍然顯示

PHP GD Extension: Not Found 
PHP FreeType Support: Not Found 

我敢對此有信心,因爲它在我卸載PHP並安裝了不同版本並且丟失了這些擴展之前有效:/

+0

2秒谷歌的:http://forum.remirepo.net/viewtopic.php?id=2698 – Wrikken

+0

不,你可以在我的問題看,我已經試過類似的東西了。 – braks

+1

你似乎沒有'remi'回購。如果你運行'yum repolist',你會看到一個嗎? freetype是否支持gd似乎可以動態加載的方式?我認爲這是編譯時的選擇。 –

回答

1

缺少EPELremi-safe存儲庫,它提供了remi-php55,remi-php56,remi-php70中可用的各種PHP版本的通用依賴關係...

當您安裝remi-release配置軟件包時,默認啓用remi-safe存儲庫。 epel-release是remi-release的依賴。

configuration wizard爲您提供正確的說明。

重複http://forum.remirepo.net/viewtopic.php?id=3402

+0

我懷疑它會是這樣的!對於我在過去幾天中所做的各種事情,我發現像「禁用這個衝突的回購,添加回購...」這樣的建議,我只是失去了跟蹤。 PS你的嚮導鏈接到本地​​主機。除非這應該鏈接到我的電腦上的東西?我從Windows安裝到服務器。 – braks

+0

固定配置嚮導的鏈接。 –

相關問題