$ 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!
On Tue, Jan 21, 2014 at 11:01 AM, Gilles Detillieux < grdetil@scrc.umanitoba.ca> wrote:
On 01/21/2014 09:58 AM, Gilbert E. Detillieux wrote:
On 2014-01-21 09:38, Kevin McGregor wrote:
I'm setting up a Ubuntu 10.04.4 LTS server at work for a client who plans to install something called "Stori" (an Oracle-ish thing, stori.orapub.com http://stori.orapub.com). The requirements FAQ on that site is vague, saying "You can install our product on any Linux server." Okay, so what else? "You will need the gd package; do rpm -q gd to ensure it's installed." That's for a Red Hat-derived distro presumably, so what's the equivalent for Debian/Ubuntu? The only package I found was php5-gd, which seems like overkill as it brings in a ton of other stuff. Is gd installed by default in Ubuntu 10.04?
I have no idea if it would be there by default, but you could try running "locate /libgd." on your system to see if the library files are installed. (BTW, on an Ubuntu 12.04.4 LTS system here, they were already installed, but then this system has PHP and a bunch of support packages for a web site. The package name for gd on this Ubuntu distro is "libgd2-xpm".)
On RHEL 5 & 6, the "gd" package installs a single library (libgd.so.2.0.0, though the actual package version is 2.0.33 or 2.0.35) and related docs, so I think all you'd need to do is run "ls -l /usr/lib*/libgd.so*" to see if it's there already. If it's not there on the Ubuntu system, then it's a matter of finding and installing the right package. Searching online suggests these commands might do the trick: "sudo apt-cache search libgd" to find it, and something like "sudo apt-get install libgd2" to install it (though the actual package name may differ). There are probably any number of packages you could install that would drag in the library as a dependency, so there are many ways to get it installed, but I imagine you're looking for the minimal set. As Gilbert suggested, libgd2-xpm may well be just that.
See http://www.linuxquestions.org/questions/debian-26/how-to- install-gd-image-library-on-debian-155068/ and http://www.perlmonks.org/? node_id=868016
-- Gilles R. Detillieux E-mail: grdetil@scrc.umanitoba.ca Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/ Dept. Physiology, U. of Manitoba Winnipeg, MB R3E 0J9 (Canada)
Roundtable mailing list Roundtable@muug.mb.ca http://www.muug.mb.ca/mailman/listinfo/roundtable