CentOS5 で PHP5 を使用していたら、GD が入っていないことに気がついた。

# yum list | grep php
php.i386                                 5.1.6-24.el5_4.5              installed
php-cli.i386                             5.1.6-24.el5_4.5              installed
php-common.i386                          5.1.6-24.el5_4.5              installed
php-devel.i386                           5.1.6-24.el5_4.5              installed
php-ldap.i386                            5.1.6-24.el5_4.5              installed
php-mbstring.i386                        5.1.6-24.el5_4.5              installed
php-mysql.i386                           5.1.6-24.el5_4.5              installed
php-odbc.i386                            5.1.6-24.el5_4.5              installed
php-pdo.i386                             5.1.6-24.el5_4.5              installed
php-pear.noarch                          1:1.4.9-6.el5                 installed
php-pgsql.i386                           5.1.6-24.el5_4.5              installed
php-bcmath.i386                          5.1.6-24.el5_4.5              updates
php-dba.i386                             5.1.6-24.el5_4.5              updates
php-dbase.i386                           5.1.6-15.el5.centos.1         extras
php-imap.i386                            5.1.6-24.el5_4.5              updates
php-mcrypt.i386                          5.1.6-15.el5.centos.1         extras
php-mhash.i386                           5.1.6-15.el5.centos.1         extras
php-mssql.i386                           5.1.6-15.el5.centos.1         extras
php-ncurses.i386                         5.1.6-24.el5_4.5              updates
php-pear-Auth-SASL.noarch                1.0.2-4.el5.centos            extras
php-pear-DB.noarch                       1.7.13-1.el5.centos           extras
php-pear-Date.noarch                     1.4.7-2.el5.centos            extras
php-pear-File.noarch                     1.2.2-1.el5.centos            extras
php-pear-HTTP-Request.noarch             1.4.2-1.el5.centos            extras
php-pear-Log.noarch                      1.9.13-1.el5.centos           extras
php-pear-MDB2.noarch                     2.4.1-2.el5.centos            extras
php-pear-MDB2-Driver-mysql.noarch        1.4.1-3.el5.centos            extras
php-pear-Mail.noarch                     1.1.14-1.el5.centos           extras
php-pear-Mail-Mime.noarch                1.4.0-1.el5.centos            extras
php-pear-Net-SMTP.noarch                 1.2.10-1.el5.centos           extras
php-pear-Net-Sieve.noarch                1.1.5-2.el5.centos            extras
php-pear-Net-Socket.noarch               1.0.8-1.el5.centos            extras
php-pear-Net-URL.noarch                  1.0.15-1.el5.centos           extras
php-pecl-Fileinfo.i386                   1.0.4-3.el5.centos            extras
php-pecl-memcache.i386                   2.2.3-1.el5_2                 extras
php-readline.i386                        5.1.6-15.el5.centos.1         extras
php-snmp.i386                            5.1.6-24.el5_4.5              updates
php-soap.i386                            5.1.6-24.el5_4.5              updates
php-tidy.i386                            5.1.6-15.el5.centos.1         extras
php-xml.i386                             5.1.6-24.el5_4.5              updates
php-xmlrpc.i386                          5.1.6-24.el5_4.5              updates

でも、入れるのは簡単です。

# yum install php-gd

php-gd を入れて、httpd を再起動すれば OK です。

関連する投稿