[pmwiki-users] Defining and displaying chess diagrams in WikiPages

Christian Bartolomaeus bartolin at gmx.de
Wed Nov 23 14:43:50 CST 2005

* On 2005-11-23 Patrick R. Michaud (pmichaud at pobox.com) wrote:
> [...]
> > > It's possible that your installation of PHP doesn't have this
> > > function included.
> > 
> > I guess, that's the problem. If I start chessboard.php directly, the
> > error message is:
> >   
> >   Fatal error: Call to undefined function: imagecreatefromgif() in
> >   /var/www/pmwiki2/pub/chess/chessboard.php on line 57
> It's possible that your server has the image functions loaded
> but not imagecreatefromgif().  The imagecreatefromgif() function
> is only available if PHP was linked against specific versions of
> the GD library, whereas imagecreatefrompng() shouldn't have those
> issues (assuming your PHP can do graphics at all).
> An easy way to check is to set $EnableDiag=1; in your config.php
> file, then run ?action=phpinfo, and see if there's a "gd" section
> and which fileformats are enabled.

Trying phpinfo() I didn't see a "gd" section (I guess, it would look
like the sections "bcmath" or "bz2":

  BCMath support  enabled

  BZip2 Support   Enabled
  BZip2 Version   1.0.2, 30-Dec-2001

Maybe the "Configure Commands" of phpinfo() give more informations?
There are some notions of "gd" at least but none of "gif":

  '../configure' '--prefix=/usr' '--with-apxs=/usr/bin/apxs'
  '--with-config-file-path=/etc/php4/apache' '--enable-memory-limit'
  '--disable-debug' '--with-regex=php' '--disable-rpath'
  '--disable-static' '--with-pic' '--with-layout=GNU'
  '--with-pear=/usr/share/php' '--enable-calendar' '--enable-sysvsem'
  '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars'
  '--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype'
  '--with-db4' '--with-iconv' '--enable-exif' '--enable-filepro'
  '--enable-ftp' '--with-gettext' '--enable-mbstring'
  '--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets'
  '--enable-wddx' '--disable-xml' '--with-expat-dir=/usr'
  '--with-xmlrpc' '--enable-yp' '--with-zlib' '--without-pgsql'
  '--with-kerberos=/usr' '--with-openssl=/usr' '--with-zip=/usr'
  '--enable-dbx' '--with-mime-magic=/usr/share/misc/file/magic.mime'
  '--with-exec-dir=/usr/lib/php4/libexec' '--without-mm'
  '--with-curl=shared,/usr' '--with-dom=shared,/usr'
  '--with-dom-xslt=shared,/usr' '--with-dom-exslt=shared,/usr'
  '--with-zlib-dir=/usr' '--with-gd=shared,/usr'
  '--enable-gd-native-ttf' '--with-jpeg-dir=shared,/usr'
  '--with-xpm-dir=shared,/usr/X11R6' '--with-png-dir=shared,/usr'
  '--with-freetype-dir=shared,/usr' '--with-imap=shared,/usr'
  '--with-imap-ssl' '--with-ldap=shared,/usr'
  '--with-mcal=shared,/usr' '--with-mhash=shared,/usr'
  '--with-mysql=shared,/usr' '--with-unixODBC=shared,/usr'
  '--with-recode=shared,/usr' '--enable-xslt=shared'
  '--with-xslt-sablot=shared,/usr' '--with-snmp=shared,/usr'
  '--with-sybase-ct=shared,/usr' '--with-ttf=shared,/usr'

I searched the web and it seems that the Debian Sarge installation of
PHP is not linked against the relevant library. So one option would be
to recompile PHP, right?

I'll take a closer look next week.

Thanks for your support!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /pipermail/pmwiki-users/attachments/20051123/8341e1ab/attachment.bin 

More information about the pmwiki-users mailing list