I always get one of the GD tests failing but in reality it never causes any problems I can't remember the detail but I think the binary file produced in the PNG test does not match the test (we are using RH9 but with compiled recent GD, PERL, Apache etc not the rpms). However we have not had any problems with GD and png.

I would mention we found a serious GD issue when using PHP (which has its own GD library). This affects both windows and linux in our experience. If you use a default install of PHP, TT gets confused when using GD and some graphs will not work (it is literally down to the number of data points, probably some divide error, so won't happen with some data, will with other on the same graph).

Our solution is to compile PHP using a compiled GD (the same one you compiled for TT) and not use the default one. (I imagine there are other ways too)
e.g.

ensure zlib was compiled with shared (otherwise compile errors).
./configure --shared;make;make install;

then for php-4.4.0
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd=/usr/local --with-zlib-dir=/usr/local/lib --with-freetype-dir=/usr/local/lib --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/local/lib --with-tt --enable-gd-native-ttf
make clean
make
make install

Don't know if that will help anyone :-)
Simon

At 01:12 06/12/2005, Phil Mitchell wrote:

I'm trying to install TT2 and failing tests 5,7,9,11 in t/gd.t. GD is
important to us, so I'd really like to resolve this.

perl 5.8.4 on FreeBSD 4.7
TT2 2.14 with XS Stash
GD.pm 2.30
libgd 2.0.33

Thanks!

perl -V:

Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
  Platform:
    osname=freebsd, osvers=4.7-release-p22, archname=i386-freebsd
    uname='freebsd thursday.securesites.net 4.7-release-p22 freebsd
4.7-release-p22 #29: tue mar 2 15:58:41 mst 2004
[EMAIL PROTECTED]:usrsrcsyscompilevkern i386 '
    config_args='-Dd_dosuid=define
-Dotherlibdirs=/usr/local/lib/perl5/5.00503:/usr/local/lib/site_perl
-Dvendorprefix=/usr/local -Dmyhostname=fc2 -Dmydomain=freebsd.org
-des'     hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef     useperlio=define d_sfio=undef
uselargefiles=define usesocks=undef     use64bitint=undef
use64bitall=undef uselongdouble=undef     usemymalloc=n,
bincompat5005=undef   Compiler:     cc='cc', ccflags ='-DHAS_FPSETMASK
-DHAS_FLOATINGPOINT_H -fno-strict-aliasing -I/usr/local/include',
    optimize='-O',
    cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H
-fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.4 20020320 [FreeBSD]', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags ='-Wl,-E  -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib
    libs=-lgdbm -lm -lcrypt -lutil -lc
    perllibs=-lm -lcrypt -lutil -lc
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-DPIC -fPIC', lddlflags='-shared  -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under freebsd
  Compiled at May 28 2004 17:24:36

--
==========================
2People Blog: http://2-people.blogspot.com/
2People site: http://www.2people.org

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates



--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.1.362 / Virus Database: 267.13.11/191 - Release Date: 02/12/2005


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.371 / Virus Database: 267.13.13/197 - Release Date: 09/12/2005



_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to