next up previous contents
Next: Compilation Up: Graphics Requirements Previous: libpng   Contents

gd

Gd is available from these sites:

http://www.boutell.com/gd/

There is no FTP server at this site.

To install, pick up the sources, build zlib and libpng first, and then:

% gunzip -c gd-1.8.4.tar.gz     | tar xf -
% ln -s gd-1.8.4     gd
% cd gd

Now edit Makefile, change the definitions for INCLUDEDIRS, LIBDIRS, INSTALL_LIB, INSTALL_INCLUDE, INSTALL_BIN, and change all

/usr/local
to
/home/joe/local

% make
% make install
% cd ..

If the gd "make install" fails with a warning about the "bin" directory, you need to create it by hand (see above).

To compile with the local version your EMBOSS configure line should now read:

./configure --with-pngdriver=/home/joe/local

This will look for the graphics libraries in your local installation under

/home/joe/local
instead of a system-wide location

configure keeps a copy of the previous settings. With earlier releases of EMBOSS, or as a developer with an earlier release of autoconf, you may need to delete files

config.cache
and
config.status
if configure has been run before.



Peter Rice 2007-04-26