[WBEL-users] with-gd (WBEL 3) vs. with-gd=shared (WBEL 4)

Jason Becker jason at coalescentsystems.ca
Fri Jul 8 18:28:27 CDT 2005


Hello All,

This post is probably better suited to whitebox-devel  but when I 
clicked on that list to sign up I got:


  Mailman CGI error!!!

(same goes for all of the other whitebox lists BTW).

Anyway, I was wondering if anyone could speak to why WBEL 3 PHP was 
compiled --with-gd (which uses the bundled gd library in PHP per 
php.net) but WBEL 4 is using --with-gd=shared (which uses the separate 
base install gd, which is not recommended by php.net).

php.net snippet:

 To enable GD-support configure PHP --with-gd[=DIR], where DIR is the GD 
base install directory. To use the recommended bundled version of the GD 
library (which was first bundled in PHP 4.3.0), use the configure option 
--with-gd. GD library requires libpng and libjpeg to compile.

The problem I'm trying to solve is that JPGraph complains on WBEL 4 but 
not WBEL 3:

JpGraph Error This PHP installation is not configured with the GD library.
Please recompile PHP with GD support to run JpGraph. (Neither function
imagetypes() nor imagecreatefromstring() does exist)





The box throwing the above error has:

[root at foo ~]# php -i | grep with-gd
<tr><td class="e">Configure Command </td><td class="v"> './configure' '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db4=/usr' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd=shared' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-ncurses=shared' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mime-magic=/usr/share/file/magic.mime' '--enable-force-cgi-redirect' '--enable-pcntl' </td></tr>

[root at foo ~]# rpm -qa | grep gd
gd-2.0.28-4
gd-devel-2.0.28-4
gdbm-1.8.0-24
sysklogd-1.4.1-26_EL
gdb-6.1post-1.20040607.62
gdk-pixbuf-0.22.0-16.el4
gdm-2.6.0.5-6
gdbm-devel-1.8.0-24

[root at foo ~]# php -v
PHP 4.3.9 (cgi) (built: Apr 29 2005 00:20:01)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies


Thanks in advance.

Regards,

-- 
Jason Becker
Director & CEO
Coalescent Systems Inc.
Enabling Open Source Telephony
403.244.8089
www.coalescentsystems.ca





More information about the Whitebox-users mailing list