$ ls -l /usr/lib*/libgd*
lrwxrwxrwx 1 root root 23 2014-01-20 11:04 /usr/lib64/libgdbm_compat.so.3 -> libgdbm_compat.so.3.0.0
-rw-r--r-- 1 root root 10120 2009-12-05 16:15 /usr/lib64/libgdbm_compat.so.3.0.0
lrwxrwxrwx 1 root root 16 2014-01-20 11:04 /usr/lib64/libgdbm.so.3 -> libgdbm.so.3.0.0
-rw-r--r-- 1 root root 22768 2009-12-05 16:15 /usr/lib64/libgdbm.so.3.0.0
lrwxrwxrwx 1 root root 23 2014-01-20 11:04 /usr/lib/libgdbm_compat.so.3 -> libgdbm_compat.so.3.0.0
-rw-r--r-- 1 root root 10120 2009-12-05 16:15 /usr/lib/libgdbm_compat.so.3.0.0
lrwxrwxrwx 1 root root 16 2014-01-20 11:04 /usr/lib/libgdbm.so.3 -> libgdbm.so.3.0.0
-rw-r--r-- 1 root root 22768 2009-12-05 16:15 /usr/lib/libgdbm.so.3.0.0
Aw.
$ sudo apt-get install php5-gd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common fontconfig-config libapache2-mod-php5 libapr1
libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libfontconfig1 libgd2-xpm libjpeg62 libt1-5 libxpm4
php5-common ssl-cert ttf-dejavu-core
Suggested packages:
apache2-doc apache2-suexec apache2-suexec-custom php-pear libgd-tools php5-suhosin
The following NEW packages will be installed:
apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common fontconfig-config libapache2-mod-php5 libapr1
libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libfontconfig1 libgd2-xpm libjpeg62 libt1-5 libxpm4
php5-common php5-gd ssl-cert ttf-dejavu-core
0 upgraded, 19 newly installed, 0 to remove and 0 not upgraded.
Need to get 9,535kB of archives.
After this operation, 26.0MB of additional disk space will be used.
Oh, there it is. I tried that before, but I must have missed seeing the libgd2-xpm.
I ended up going with this:
$ sudo apt-get install libgd2-noxpm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libjpeg62
Suggested packages:
libgd-tools
The following NEW packages will be installed:
libgd2-noxpm libjpeg62
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 308kB of archives.
After this operation, 885kB of additional disk space will be used.
Thanks, all!