LoginSignup
0
1

More than 5 years have passed since last update.

CentOS-6.7でphp-gdが入らない

Posted at

・CentOS-6.7
・php-5.6

入れたいものはphp56-php-gd.x86_64

$ yum list | grep php-gd
php-gd.x86_64                             5.6.30-1.el6.remi            @remi-php56
php54-php-gd.x86_64                       5.4.45-13.el6.remi           @remi
php56-php-gd.x86_64                       5.6.30-1.el6.remi            @remi-safe
php55-php-gd.x86_64                       5.5.38-7.el6.remi            remi-safe
php70-php-gd.x86_64                       7.0.17-1.el6.remi            remi-safe
php71-php-gd.x86_64                       7.1.3-1.el6.remi             remi-safe

自分の扱ってるPHPのバージョンを確認して下さい

手順を書いていきます

下記の様に単純に入れるとこけるので

$ sudo yum --enablerepo=remi,remi-php56 install php-gd

gdを先に入れる

$ sudo yum --enablerepo=remi,remi-php56 install php-last

tlibを入れる

$ sudo yum --enablerepo=remi,remi-php56 install t1lib

CentOS-6.7でphp-gd を入れたい場合、
先にgd-lastとt1libを入れてから、php-gd を入れる必要があるらしい

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1