2016-04-05 16 views
0

CentOSでGDとFreetype for PHPをインストールできません。centosにyumを使ってphp-gdとfreetypeをインストールできない

は、私はこの1つ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 

私のウェブアプリはまだ

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'を実行すると1つ目が見えますか? freetypeは、gdが動作するように動的にロードできるものですか?私はそれがコンパイル時の選択だと思った。 –

答えて

1

紛失レミ・php55、レミ-php56、レミ・php70で利用可能な様々なPHPのバージョンに共通の依存関係を提供とremi-safeリポジトリ...あなたはレミ・リリース構成パッケージをインストールするとき

レミ・安全なリポジトリはデフォルトで有効になっています。 epel-releaseはremi-releaseの依存関係です。

configuration wizardには正しい指示があります。

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

+0

私はそれがそういうものだろうと思った!私はちょうど私が最後のカップルの日にやった様々なもののために "この矛盾するレポを無効にする、このレポを追加..."のようなすべてのアドバイスの後にどこから来たのか分かりませんでした。 PSあなたのウィザードの事はローカルホストにリンクします。それは私のコンピュータ上の何かにリンクされていない限りですか?私は窓からサーバーにパテイしようとしている。 – braks

+0

設定ウィザードへのリンクが修正されました。 –

関連する問題